DDC-2899: Allow the NEW operator to construct objects containing entities #3614

Closed
opened 2026-01-22 14:23:44 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 9, 2014).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user darkangel:

E.g.:

SELECT NEW CustomerDTO(c, SUM(o.value)) FROM Customer c JOIN c.orders o GROUP BY c

public function **construct(Customer $c, $sum) { ... }

Originally created by @doctrinebot on GitHub (Jan 9, 2014). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user darkangel: E.g.: SELECT NEW CustomerDTO(c, SUM(o.value)) FROM Customer c JOIN c.orders o GROUP BY c public function **construct(Customer $c, $sum) { ... }
admin added the Improvement label 2026-01-22 14:23:44 +01:00
admin closed this issue 2026-01-22 14:23:44 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jan 9, 2014):

@doctrinebot commented on GitHub (Jan 9, 2014): - duplicates [DDC-2694: Hydrating with entities with the NEW operator](http://www.doctrine-project.org/jira/browse/DDC-2694)
Author
Owner

@doctrinebot commented on GitHub (Jan 9, 2014):

Comment created by flip101:

(y)

@doctrinebot commented on GitHub (Jan 9, 2014): Comment created by flip101: (y)
Author
Owner

@doctrinebot commented on GitHub (Jan 12, 2014):

Comment created by flip101:

This is actually a duplicate, prior: http://www.doctrine-project.org/jira/browse/DDC-2694

@doctrinebot commented on GitHub (Jan 12, 2014): Comment created by flip101: This is actually a duplicate, prior: http://www.doctrine-project.org/jira/browse/[DDC-2694](http://www.doctrine-project.org/jira/browse/DDC-2694)
Author
Owner

@doctrinebot commented on GitHub (Jan 12, 2014):

Comment created by @ocramius:

Duplicate of DDC-2694

@doctrinebot commented on GitHub (Jan 12, 2014): Comment created by @ocramius: Duplicate of [DDC-2694](http://www.doctrine-project.org/jira/browse/DDC-2694)
Author
Owner

@doctrinebot commented on GitHub (Jan 12, 2014):

Issue was closed with resolution "Duplicate"

@doctrinebot commented on GitHub (Jan 12, 2014): Issue was closed with resolution "Duplicate"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3614