doSelectJoinAll(), can you tried this one ?

2007/12/22, James <[EMAIL PROTECTED]>:
>
>
> I actually found a solution, I took a different approach.  I created a
> custom function to return the data  I wanted for the object from the
> object.  Though it would be nice to get an answer to this, it's not a
> priority anymore.
>
> James
>
>
> On Dec 21, 2007, at 10:50 PM, James wrote:
>
> > 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
> >
>
>
> >
>


-- 
Yılmaz Uğurlu ~ jabber : [EMAIL PROTECTED]  ~ http://www.2nci.com ~ İzmir

--~--~---------~--~----~------------~-------~--~----~
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