Skip Navigation

[Resolved] I need to guarantee that a relationship is unique

This support ticket is created 2 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 4.98 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 2 years, 6 months ago.

Assisted by: Waqar.

Author
Posts
#2349031

Hi,

I have a Company CPT, a Collaborator CPT and a Company_Collaborator relationship.
I need to check if a Collaborator with an author_id and company_id is unique.

An user can only work in a company once.

Thank you!

#2349293

Hi,

Thank you for contacting us and I'd be happy to assist.

In the Toolset relationships, more than one relationship connection isn't possible between two posts. This means that if a Company post and a Collaborator post have been joined once, they can't be joined again, in the same relationship.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar