Grant Cox wrote:
> What you are doing (the commented out line) is a good way to do it.[...]

Great. I just wanted to make sure I wasn't doing something wrong.

> The only thing to improve it would be to manually run the
> Judge->validates($this->data) and User->validates($this->data), before
> attempting to save.  Otherwise the Judge may be updated, even when the
> User has validation errors.

Yes, you've read my mind (retroactively, sort of). I discovered that
one model can indeed get updated even when the other doenn't validate,
and have been playing with ways to avoid that.

Thanks very much for helping me with this.

Odd thing to me is, why does cake SELECT from all both joined tables
when you findAll(), but not UPDATE  them when you save().


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to