mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #11575] Allow named Arguments to be passed to Dto #13106
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/11575
State: closed
Merged: Yes
Allow to change argument order or use variadic argument in dto constructor.
When Dto implements (empty) interface WithNamedArguments, ObjectHydrator will pass an associated key<>value argument to Dto constructor.
Dto can use named arguments or a variadic argument to put values in their properties.
Final Goal (to do after) is to allow
select NEW ItemDto(item.*) FROM App\Entity\Item as itemupdated with with the nested New operator PR.