I have a problem with relationship between models: when I use "with" in a "find" request, only the first model of the "with" array is loaded.
ex: Internship::find('all', array( 'with' => 'students','professors','tutors));
The sql request return is SELECT * FROM interneship LEFT JOIN students WHERE internship.student_id = student.id
This works with a previous release few days ago.
Seems the correct syntax is:
Internship::find('all', array( 'with' => array('Student','Professor','Tutor')));
'with' should be an array of relation names.
Sorry, you're right. #723 should solve my mistake.
Fixed by #723. Thanks @jails!
Works perfectly ! Thanks
Awesome. :-) Let us know if the docs aren't clear on the correct configuration.