mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-750: Named scopes (conditional columns and associations) #925
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Aug 17, 2010).
Jira issue originally created by user jantichy:
I would like to propose new functionality - conditional columns and associations. I mean something like named scopes in Rails active record.
For example if I have association to all my shirts:
And if I want red shirts only often, I woult appreciate something like:
This would help me to increase application efficiency in particular cases (if I need only red shirts in one user request) because only one SELECT for red shirts is sent to database. Moreover, I wouldn't have to define anything more. Today I have to define the select or the restriction manually, for example in following way:
Thanks, Jan
@doctrinebot commented on GitHub (Aug 17, 2010):
@doctrinebot commented on GitHub (Aug 17, 2010):
Comment created by @beberlei:
this is what i described at http://www.doctrine-project.org/projects/orm/2.0/docs/reference/limitations-and-known-issues/en#current-limitations:applying-filter-rules-to-any-query
We want this feature too, just have to be careful how we can implement it due to the difference of Repository and DQL access to entities.
@doctrinebot commented on GitHub (May 17, 2011):
Comment created by wilmoore:
Just updating the link posted by Benjamin:
http://www.doctrine-project.org/docs/orm/2.0/en/reference/limitations-and-known-issues.html#applying-filter-rules-to-any-query
@doctrinebot commented on GitHub (Aug 26, 2011):
Comment created by @beberlei:
Duplicate of DDC-551
@doctrinebot commented on GitHub (Aug 26, 2011):
Issue was closed with resolution "Duplicate"