I have 4 tables.

Schedule
SchoolClasses
Instructors
ScheduleInstructorsMap

        $c = new Criteria();
        $c->addJoin(SchedulePeer::SCHOOL_CLASS_ID,SchoolClassPeer::ID);
        $this->scheduleList = SchedulePeer::doSelect($c);

Using this I am able to get the one to one relationship between a  
SchoolClass object and the Schedule object.  There's also a many to  
many relationship between the Schedule and Instructors.  Using the  
admin generator the relationships are all working.  If I check the  
available functions on the schedule object one of them is  
"getScheduleInstructors()" and it returns an array of 2  
ScheduleInstructorMap objects,

Now my question is is there a good way to get the actual Instructors  
object into the Schedule object, or should I just create a new  
criteria and pull the instructors based on the IDs passed into it?

Thanks,
James


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to