Hi Winzou. The problem I find with this approach is that all related objectB will be retrieved from database. I would want to optimize performance loading only necessary objects.
Best practices doesn't allow the entity manager to be accessed from entities, but that would be very helpful!. 2011/6/6 winzou <alexandre.ba...@gmail.com> > You have to create a method in your objectA entity, like > findPublicObjectB(), which returns only the objectB you want. > And then from the template : for objectB in objectA.findPublicObjectB. > > -- > 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