NEW operator overwrite entity #6591

Open
opened 2026-01-22 15:35:27 +01:00 by admin · 0 comments
Owner

Originally created by @alex-dev on GitHub (Dec 16, 2020).

A single NewObjectExpression without any ScalarExpression will overwrite any defined entity result.

SELECT entity, NEW DTO('args') FROM MyEntity AS entity

The above expression should return [entity, DTO][]. It returns DTO[].

Originally created by @alex-dev on GitHub (Dec 16, 2020). A single `NewObjectExpression` without any `ScalarExpression` will overwrite any defined entity result. ``` SELECT entity, NEW DTO('args') FROM MyEntity AS entity ``` The above expression should return `[entity, DTO][]`. It returns `DTO[]`.
admin added the Bug label 2026-01-22 15:35:27 +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#6591