Hi,

If I have two EO’s that are modelled with a many to many relationship, and I 
add an object to the relationship without checking if it is in there first — 
does it check if the relationship already exists? Better yet, does it check if 
it happens across models (same database)?

Eg:
Card and Account (Eos) have the relationship described above.

card.addToAccounts(account) calls includeObjectIntoPropertyWithKey(account, 
“accounts”) in my _Card.java. Would this trigger the check? I looked at the 
code in includeObjectIntoPropertyWithKey and it appears to check but I was 
getting a very strange error which suggested this was a problem. Essentially I 
was getting an error where an insert was being attempted for a to-many 
relationship that had already occurred.

Thanks.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to