mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2899: Allow the NEW operator to construct objects containing entities #3614
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 (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) { ... }
@doctrinebot commented on GitHub (Jan 9, 2014):
@doctrinebot commented on GitHub (Jan 9, 2014):
Comment created by flip101:
(y)
@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 @ocramius:
Duplicate of DDC-2694
@doctrinebot commented on GitHub (Jan 12, 2014):
Issue was closed with resolution "Duplicate"