Skip to content


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

doctrinebot opened this Issue · 5 comments

2 participants


Jira issue originally created by user darkangel:


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

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


Comment created by flip101:



Comment created by @ocramius:

Duplicate of DDC-2694


Issue was closed with resolution "Duplicate"

@Ocramius Ocramius was assigned by doctrinebot
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.