logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: fill three levels of objects: msg#00005

Subject: Re: fill three levels of objects
On Friday 02 June 2006 11:16, Marc wrote:
> $report_param_id =
> $reportDatasource->getReport()->getReportParam()->getId()
>
> propel know the foreign key and the joins so it could fill directly the
> objects ..

Your above code will work, but it wont' be efficient as I'm sure you're aware.

Propel doens't generate stuff to do deep joins like this automagically, you 
have to create your own classes in the Peer.  Check out the generated 
Base$ObjectPeer files for examples, it should be reasonably apparent how you 
do it.  Perhaps there's docs on it somewehre, I dunno.

Good luck
-- 
Ian P. Christian
http://pookey.co.uk


<Prev in Thread] Current Thread [Next in Thread>