relationship problem with validation
relationship problem with validation
- Subject: relationship problem with validation
- From: "Simon Ganiere" <email@hidden>
- Date: Thu, 4 Mar 2004 09:44:58 +0100
Hello,
I have a little problem. I would like to implement the following
thing. I have a news table, a user table and a reaction table in my
db. The news must have a (and only one) user, a reaction must have a
(and only one) user and a (and only one) news, the user can have
several news and reaction. I have implemented a validation form to
create user, they must give a valid email adress, a password with at
least 6 characters.
when i tried to add a reaction and i wrote
theReaction.addObjectToBothSidesOfRelationshipWithKey(thisUser,
"users");
there is an error with the validation who says that the password
field of the user is not 6 characters longs (that's right I make a
validation system but why this appears here the user is already
created) !?!??! How do I go through this, I would like just to add a
reaction with the two relation (the news and the user).
thanks in advance
-------------------------
Simon Ganiere
http://www.simonganiere.ch
Switzerland
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.