Hmm does not seem to work. This is now what I am working on.
As a test I ran this on my User Controller that has the related Attendance
$users = $this->User->find('all', array('contain' => 'Attendance.school_id
= "2"'));
Instead of returning all user records that related Attendance.school_id =
"2" it gives me every user in the database.
And oddly for the records that do have attendance records the attendance is
blank in every record.
example:
[86] => Array
(
[User] => Array
(
[id] => 960
[group_id] => 2
[last_name] => Camier
[school_id] => 1
)
[Attendance] => Array
(
)
)
[87] => Array
(
[User] => Array
(
[id] => 961
[group_id] => 2
[last_name] => Miccio
[school_id] => 1
)
[Attendance] => Array
(
)
)
--
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.