Skip to content
Discussion options

You must be logged in to vote

I would recommend sticking with the intermediate object BusinessUser that points to both Business and User because then you can keep the constraint exclusive on ((.business, .user)) that ensures that the same User cannot be associated with a Business twice.

That is, whenever there is a BusinessUser involved, the BusinessUser trigger kicks in. Whenever there isn't, however, the required multi backlink's assertion is kicking in only if the Business trigger is present!!!

Correct, triggers only activate when their object type is somehow used directly in a query. So when you run insert Business {name:="B1"};, only the Business object triggers activate.

The misunderstanding here is what required

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@scotttrinh
Comment options

@akhayyat
Comment options

@akhayyat
Comment options

@akhayyat
Comment options

@akhayyat
Comment options

Comment options

You must be logged in to vote
2 replies
@akhayyat
Comment options

@vpetrovykh
Comment options

Answer selected by akhayyat
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants