For example, if I have:
class Parent {
protected $children;
}
class Child
{
protected $parent;
protected $name;
}
Now, say, for a parent, I want to filter the children by their name. If possible, somehow making parent.getChildren () with this filter would be nice, but it's not possible.
I would like it to probably have the syntax getChildrenByName (), but this function seems unsuitable for the ORM class and the repository class. Anyone have any suggestions?
source
share