Re: Is there a way to get a slice of many tables?

2008-10-03 Thread Mingan
Or you can specify only the fields you're interested in via 'fields' array. in Model::find() On 3 Říj, 00:22, Steveston [EMAIL PROTECTED] wrote: For example: a typical university project, I have users, user_courses (for instructors), user_enrolls (for students), courses, events (each course

Is there a way to get a slice of many tables?

2008-10-02 Thread Steveston
For example: a typical university project, I have users, user_courses (for instructors), user_enrolls (for students), courses, events (each course have one or more events), groups (each event has one or more groups), group_members (each group has 1+ members), etc It is very common for me to get

Re: Is there a way to get a slice of many tables?

2008-10-02 Thread Adam Royle
Use associations to define your relationships, then use Containable behavior to limit what data is returned. Easy! On Oct 3, 8:22 am, Steveston [EMAIL PROTECTED] wrote: For example: a typical university project, I have users, user_courses (for instructors), user_enrolls (for students),