orm icon indicating copy to clipboard operation
orm copied to clipboard

Allow named Arguments to be passed to Dto

Open eltharin opened this issue 6 months ago • 2 comments

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 item

updated with with the nested New operator PR.

eltharin avatar Aug 19 '24 11:08 eltharin