Php – Symfony serializer with array of entities
I have 2 DTO objects and I need to convert json to it: class SomeDTO { public function __construct( #[SerializedName('some_property')] private string $someProperty, #[SerializedName('some_other_property')] private int $someOtherProperty, ) { } public function getSomeProperty(): string { return $this->someProperty; } public function…