orm - Doctrine2 : Applying a filter to an association -


For example if I have:

  class parent {/ * ... * / ** ** Multiple teams * Protected / children; } Class child {/ * .. * / ** ** Many a federation * / protected $ original; / * Child column name * / Protected $ name; }   

Now, let's ask for parents, I want to filter kids by their name. If possible, parents in any way. Children with this filter () would be nice, but it is impossible.

I would like to get this syntax for Childrenbenam (), but this function is ORM class and this is the repository class, do anyone have any suggestions?

This could be your solution:

This allows organizations to add criteria when fetching

Comments