setUser() vs. setUserRelationship()
setUser() vs. setUserRelationship()
- Subject: setUser() vs. setUserRelationship()
- From: Marius Soutier <email@hidden>
- Date: Tue, 02 Aug 2011 10:21:43 +0200
Hi,
one thing that's always confused me and which causes a bug every now and then is for a given relationship, let's call it user, two setters are generated:
* `setUser(User user)`
* `setUserRelationship(User user)`
while only one getter `user()` is generated.
When calling `setUser()`, the field in the database is populated, but EOF doesn't understand the relationship was set which causes all kinds of weird bugs. So what's the point of the `setUser()` method?
Thanks,
- Marius
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden