Thursday, September 30, 2010

Custom validation rules and saveAll

hello.

i have 2 models
Article hasMany Component

in my Component model i wrote a custom validation rule that relies on
data from Article model.
how can i get this data?
$this->Article->find doesn't work because that function loads data
from the database.. and i need the going-to-be-saved data array

note: i'm using "validate" => "first" in all my saveAlls

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

No comments: