Hi, Yeah, I just use an adapter that I inject into mappers, I don't use Zend/Db stuff. I find it much easier to maintain and debug this way.
>From my point of view this is all that is needed. All my mappers do is query the db and return the models, I use service classes to utilise the mappers and perform model validation. On 22 May 2013 00:54, tonystamp <tonyst...@hotmail.co.uk> wrote: > ok, so you have one mapper that communicates with two seperate tables (even > if the second table just contains, for instance, 2 columns (foreign keys))? > So i'm assuming that is two seperate TableGateway instances? Or you just > have an adapter with custom sql queries? > > > > -- > View this message in context: > http://zend-framework-community.634137.n4.nabble.com/zf2-one-many-to-many-relationships-tp4659910p4660088.html > Sent from the Zend Framework mailing list archive at Nabble.com. > > -- > List: fw-general@lists.zend.com > Info: http://framework.zend.com/archives > Unsubscribe: fw-general-unsubscr...@lists.zend.com > > >