[DDC-1979] [GH-422] DDC-1574 - "new" operator Created: 12/Aug/12  Updated: 12/Dec/13  Resolved: 27/Feb/13

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.4
Security Level: All

Type: New Feature Priority: Major
Reporter: Benjamin Eberlei Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None


 Description   

This issue is created automatically through a Github pull request on behalf of FabioBatSilva:

Url: https://github.com/doctrine/doctrine2/pull/422

Message:

http://www.doctrine-project.org/jira/browse/DDC-1574

Hi guys.

This path adds support for "new" operator

Usage :
```SQL
SELECT
new CustomerDTO(c.name, e.email, a.city)
FROM
Customer c
JOIN
u.email e
JOIN
u.address a
ORDER BY
u.name
```

Any simple class with a constructor could be used
but for the first version just scalar values are allowed.

it's a big patch, so any sugestion are welcome.

Thanks.



 Comments   
Comment by Fabio B. Silva [ 27/Feb/13 ]

Merged : https://github.com/doctrine/doctrine2/commit/13762f20c9f6daa0c2e4e8a113de01969c6621da

Comment by Doctrine Bot [ 12/Dec/13 ]

A related Github Pull-Request [GH-422] was closed:
https://github.com/doctrine/dbal/pull/422

Generated at Wed Nov 26 23:23:34 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.