Friday, December 4, 2009

Re: Containable query

You might also try (from the book.cakephp.org page on Containable)

$list = $this->User->find('all', array(
'contain' => array(
'Student' => array(
'Submission.student_id' => null
)
)
));

At least according to the examples in the manual this is an appropriate way
to filter conditionally on a specific field in a contained relationship
--
View this message in context: http://n2.nabble.com/Containable-query-tp4057992p4113719.html
Sent from the CakePHP mailing list archive at Nabble.com.

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: