DDC-1979: [GH-422] DDC-1574 - "new" operator #2498

Closed
opened 2026-01-22 13:55:14 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 12, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

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 :

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.

Originally created by @doctrinebot on GitHub (Aug 12, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: 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](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.
admin added the New Feature label 2026-01-22 13:55:14 +01:00
admin closed this issue 2026-01-22 13:55:15 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 27, 2013):

Comment created by @FabioBatSilva:

Merged : 13762f20c9

@doctrinebot commented on GitHub (Feb 27, 2013): Comment created by @FabioBatSilva: Merged : https://github.com/doctrine/doctrine2/commit/13762f20c9f6daa0c2e4e8a113de01969c6621da
Author
Owner

@doctrinebot commented on GitHub (Feb 27, 2013):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Feb 27, 2013): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Dec 12, 2013):

Comment created by @doctrinebot:

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

@doctrinebot commented on GitHub (Dec 12, 2013): Comment created by @doctrinebot: A related Github Pull-Request [GH-422] was closed: https://github.com/doctrine/dbal/pull/422
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2498