Hi all, just a quick question. I have a simple model association between a Work and Image model with a one-to-many association between the two. When I call saveAll on the Work model it'll save the associated images as well. But when validation errors occur on the Work and images, it seems that $this->Work->validationErrors will only give me the validation errors of the work model and not the images. Is there a way, from the controller, to get in one shot all of the validation errors across all the associations? Or do I need to go digging into each model for them individually?
Thanks in advance!
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org Check out the new CakePHP Questions site
http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php
No comments:
Post a Comment