Wednesday, June 6, 2012

Re: custom model validation question

ok. i figured it out. The models being saved can be accessed in the
validation rule through $this->data.

On Wed, Jun 6, 2012 at 10:29 AM, Michael Gaiser <mjgaiser@gmail.com> wrote:
> I guess my question is: How do you get access to all the other
> associated data that is being saved? I can set it up so I catch it
> before the save happens, but it feels kind of hacky and does not make
> use of the field error message code.

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate