[DDC-2220] Add joins to Collection Filtering API Created: 03/Jan/13 Updated: 11/Sep/13 Resolved: 11/Sep/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?
|Comment by Benjamin Eberlei [ 11/Sep/13 ]|
This is not a good idea, because the API has to be small to allow many different implementations, for example the in memory implementation on ArrayCollection, or the implementaiton on MongoDB ODM.