DDC-2004: Allowing objects as filters #2529

Closed
opened 2026-01-22 13:56:00 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 31, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user bamarni:

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

Originally created by @doctrinebot on GitHub (Aug 31, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user bamarni: 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
admin added the New Feature label 2026-01-22 13:56:00 +01:00
admin closed this issue 2026-01-22 13:56:00 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jan 26, 2013):

Comment created by gimler:

can be closed allready in master

@doctrinebot commented on GitHub (Jan 26, 2013): Comment created by gimler: can be closed allready in master
Author
Owner

@doctrinebot commented on GitHub (Jan 26, 2013):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Jan 26, 2013): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2529