DDC-1339: New DQL function: IDENTITY(SingleValuedAssociationPathExpression) #1676

Open
opened 2026-01-22 13:21:54 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 19, 2011).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user @guilhermeblanco:

Suppose the association: User N:1 Group and user wants to be able to retrieve "users.group_id" without joining the Group entity.
This lead us to create a new DQL function:

SELECT IDENTITY(u.Group) AS group_id FROM User u WHERE u.id = ?0
Originally created by @doctrinebot on GitHub (Aug 19, 2011). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user @guilhermeblanco: Suppose the association: User N:1 Group and user wants to be able to retrieve "users.group_id" without joining the Group entity. This lead us to create a new DQL function: ``` SELECT IDENTITY(u.Group) AS group_id FROM User u WHERE u.id = ?0 ```
admin added the New Feature label 2026-01-22 13:21:54 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1676