Op Friday 21 August 2009 16:01:42 schreef mbneto: > Koen, > > When you have to use join it is recommend to use an ORM such as doctrine > that can handle this in a more complex way. > > Matthew has posted something about it in > http://www.slideshare.net/weierophinney/playdoh-modelling-your-objects-1766 >001 > > On Fri, Aug 21, 2009 at 6:36 AM, Koen <[email protected]> wrote: > > I've been looking at the new Quick Start in the ZF manual, particularly > > the model part. For a new project I'm trying to create my models in the > > same way (including a data mapper, etc). > > > > Unfortunately I don't know how to handle the relationships. When > > requesting data from your model you often want to include some fields in > > related tables (using joins), but I don't see a way doing that using the > > pattern as described in the quick start guide. Can someone give me some > > tips regarding this? > > > > Thanks in advance!
It is still possible with solely Zend_ components. I have a model with a mapper and DbTable object. The mapper maps data to the model from the DbTable object, but is also capable of handling the relations with find findDependentRowset, findParentRow find ManyToManyRowset. More information at the doc website: http://framework.zend.com/manual/en/zend.db.table.relationships.html#zend.db.table.relationships.fetching.parent Regards, Jurian -- Jurian Sluiman Soflomo.com
signature.asc
Description: This is a digitally signed message part.
