Skip to content

NewObjectExpression - multiple NEW syntax #6573

Open
@lzakrzewski

Description

@lzakrzewski

I would like to hydrate with DQL query an object with another object argument in the constructor. For example Money:
https://github.com/moneyphp/money/blob/master/src/Money.php#L57

So it should look sth like NEW Money\Money(object.amount NEW Money\Currency(object.currency)). It does not work. Are any chances to do it with doctrine?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions