Skip Navigation

[Resolved] Are relationships automatically disconnected (deleted)?

This support ticket is created 2 years, 4 months ago. 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.

This topic contains 2 replies, has 2 voices.

Last updated by garyN-2 2 years, 4 months ago.

Author
Posts
#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

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00: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!