DDC-2694: Hydrating with entities with the NEW operator #3374

Open
opened 2026-01-22 14:18:51 +01:00 by admin · 1 comment
Owner

Originally created by @doctrinebot on GitHub (Sep 19, 2013).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user flip101:

It would be nice if the new function accepted objects as parameters, like this:

new Country(country, some*extra*stuff)

Alternatively another keyword could be introduced that constructs the object with the parameter and afterwards hydrates it.

Originally created by @doctrinebot on GitHub (Sep 19, 2013). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user flip101: It would be nice if the new function accepted objects as parameters, like this: ``` new Country(country, some*extra*stuff) ``` Alternatively another keyword could be introduced that constructs the object with the parameter and afterwards hydrates it.
admin added the New Feature label 2026-01-22 14:18:51 +01:00
Author
Owner

@doctrinebot commented on GitHub (Sep 19, 2013):

@doctrinebot commented on GitHub (Sep 19, 2013): - is duplicated by [DDC-2899: Allow the NEW operator to construct objects containing entities](http://www.doctrine-project.org/jira/browse/DDC-2899)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3374