[DDC-2004] Allowing objects as filters Created: 31/Aug/12  Updated: 26/Jan/13  Resolved: 26/Jan/13

Status: Closed
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: None
Fix Version/s: None
Security Level: All

Type: New Feature Priority: Minor
Reporter: Bilal Amarni Assignee: Benjamin Eberlei
Resolution: Invalid Votes: 1
Labels: None


 Description   

Hi,

Is there a particular reason why we can only add filter class names in the orm config and not objects?

For example when using the orm with symfony2 it would allow to use services as filters, currently I guess we have to manually get the filter from the em and set the needed dependencies.

If you're interested by this I can work on a PR in the orm to allow setting a filter with both an object or a class, and then retrieving or creating it in the FilterCollection enable method.

Bilal



 Comments   
Comment by Gordon Franke [ 26/Jan/13 ]

can be closed allready in master

Generated at Fri Aug 01 12:17:00 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.