[DDC-2220] Add joins to Collection Filtering API Created: 03/Jan/13 Updated: 03/Jan/13
|Project:||Doctrine 2 - ORM|
|Reporter:||Oleg Namaka||Assignee:||Benjamin Eberlei|
|Labels:||api, collection, filtering|
The recently added collection filtering API only goes half way in achieving a full fledged solution to filter huge collections. It still lacks joins. Look at the next two snippets:
This piece of code works but what if there is a need to filter the BrandCategories collection by Categories with some extra criteria:
That would not work.
Ideally we should have a possibility to join other entities, the Category entity in our case here:
What do you think about it, does it make sense to add such functionality?