Sorry if I'm being buggy :D and thank you very much for helping, but I this approach won't solve my problem either.
The thing is that I load a collection of ObjectA, and I'm accessing every objectA in a template, and also accessing objectB collection from every objectA like: {% for objectA in objectACollection %} {% for objectB in objectA.objectBCollection %} {{ objectB.name }} {% endfor %} {% endfor %} So with a scenario like this, I can't use a repository to fetch every objecB collection to every ObjectA object in the objectACollection. What would be nice, is to create a custom doctrine proxy to load associated object implementing a filter (i.e 'select b where b.is_public_content = true'), and pass that collection to objectA->getObjectBCollection()->add(); Regards! And thanks again! 2011/6/6 winzou <alexandre.ba...@gmail.com> > Sorry I meant from the entity repository of course ! Like $listObjectsB = > $ObjectARepository->findPublicObjectB($objectA) > And in the findPublicObjectB() method, you make a DQL or whatever request > to retrieve only the objectsB you want. > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en