DDC-1991: Add parameter indexBy to EntityRepository->createQueryBuilder() #2512

Closed
opened 2026-01-22 13:55:34 +01:00 by admin · 1 comment
Owner

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

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user corphi:

createQueryBuilder() currently doesn’t have a parameter to set the third option on the FROM fragment: indexBy. Right now you have to read it, create a new From with the read properties and your desired indexBy value and replace the existing one on the QueryBuilder.

Should be ten minutes’ work including tests. Thanks a lot!

Originally created by @doctrinebot on GitHub (Aug 20, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user corphi: createQueryBuilder() currently doesn’t have a parameter to set the third option on the FROM fragment: indexBy. Right now you have to read it, create a new From with the read properties and your desired indexBy value and replace the existing one on the QueryBuilder. Should be ten minutes’ work including tests. Thanks a lot!
admin added the Improvement label 2026-01-22 13:55:34 +01:00
admin closed this issue 2026-01-22 13:55:35 +01:00
Author
Owner

@beberlei commented on GitHub (Dec 5, 2020):

This was added at some point.

@beberlei commented on GitHub (Dec 5, 2020): This was added at some point.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2512