mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2322: [GH-592] Added ability to specify INDEX BY when creating a QueryBuilder from a Repository #2915
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 (Feb 27, 2013).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @beberlei:
This issue is created automatically through a Github pull request on behalf of cmenning:
Url: https://github.com/doctrine/doctrine2/pull/592
Message:
This is a handy shortcut when using indexed results.
@doctrinebot commented on GitHub (Mar 12, 2013):
Comment created by @beberlei:
A related Github Pull-Request [GH-592] was closed
https://github.com/doctrine/doctrine2/pull/592
@doctrinebot commented on GitHub (Mar 12, 2013):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Mar 12, 2013):
Comment created by cmenning:
I disagree with the reasoning behind closing this request. In DoctrineBundle,
getDoctrine()->getEntityManager()has been deprecated, which leaves you to usegetDoctrine()->getRepository($class)->createQueryBuilder();Adding
->from()at that point is redundant since it's already been specified inside the createQueryBuilder() call. It seems wasteful to not allow a passthru of the $indexBy argument during the initial call when it's already supported by the from() called inside createQueryBuilder().@doctrinebot commented on GitHub (Mar 12, 2013):
Comment created by @ocramius:
The repository is already (probably) doing too much. A simpler approach with:
Is no big deal in my opinion.
@doctrinebot commented on GitHub (May 1, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-592] was closed:
https://github.com/doctrine/dbal/pull/592