Skip Navigation

[Resolved] Toolset Types – relationships

This support ticket is created 3 years, 6 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.

Our next available supporter will start replying to tickets in about 1.71 hours from now. Thank you for your understanding.

This topic contains 2 replies, has 2 voices.

Last updated by Aaron Zame 3 years, 6 months ago.

Author
Posts
#1809273

Hi - i'm not sure if this is a bug or not but on my website I have two different custom post types setup: Organistions and Locations. I've setup a many to one relationship - an Organisation can have many locations.
Everything was working fine until I updated Toolset Types plugin. I can see there is a toolset_associations_old table. The data in this table and the toolset_associations table is totally different.
I went in and disconnected one of locations from an Organisation. When I connected it again it added a new row into the toolset_association table. The parent_id = 6 and child_id = 7. If I look at the post id for the Organisation it is 96 and the post id for the location is 91. Shouldn't the parent_id in the toolset_association table = 96 and the child_id = 91?

Do I simply need to go into settings->troubleshooting and perform a rollback of the migration of the relationship data?

Cheers
Aaron

#1810051

Nigel
Supporter

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

Timezone: Europe/London (GMT+01:00)

Types 3.4 includes a migration to a new structure for storing relationships. The table wp_toolset_associations is still used, but it no longer stores the IDs of the connected posts directly, the IDs you see in that table now refer to a new table wp_toolset_connected_elements which stores the post IDs of the connected posts.

Everything was working fine until I updated Toolset Types plugin
What is it that isn't working? You didn't say.

#1810681

Hi Nigel,
Thanks for your reply. I was using a custom function which stopped working after the update. Now that I know the new database structure I can fix.

Cheers

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.