Passer la navigation

[Résolu] Are relationships automatically disconnected (deleted)?

This support ticket is created Il y a 3 years, 11 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par garyN-2 Il y a 3 years, 11 months.

Auteur
Publications
#2410727

Tell us what you are trying to do?I am deleting one of the posts in a many to many relationship and want to know if Toolset will automatically delete the relationship or must I do it before I delete the post?

Is there any documentation that you are following?https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_disconnect_posts

Is there a similar example that we can see?

What is the link to your site?

#2410767

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01:00)

Hi there

Yes, the records of the associations are deleted when any one of the connected posts are deleted (but not if they are only trashed).

The associations are recorded in a combination of the wp_toolset_connected_elements and wp_toolset_associations tables, and the entries are deleted from both.

#2411345

My issue is resolved now. Thank you!