@Dakota
I'm already setting the relation as below
class Student extends AppModel {
var $name = 'Student';
var $hasMany = array('StudentAttendance');
AND
class StudentAttendance extends AppModel {
var $name = 'StudentAttendance';
var $belongsTo = 'Student';
On Thursday, May 30, 2013 8:26:28 AM UTC+2, Dakota wrote:
>
> That would be the expected result for that query. You aren't including the
> 'SudentAttendance' model in your query. Looking how to use Containable, or
> custom join. You don't say what kind of relation there is between
> StudentAttendance and Student. CakePHP can't guess what you are trying to
> do, you need to tell it (The guessing part is coming up in version 4 as
> part of the MRD featureset)
>
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.