How to properly populate an ArrayCollection property of a DTO using Symfony's serializer? – PHP
I have a DTO class looking like: class ParamsDto { #[AssertType(ArrayCollection::class)] #[AssertAll([ new AssertType('digit'), new AssertPositive(), ])] private ?ArrayCollection $tagIds = null; public function getTagIds(): ?ArrayCollection { return $this->tagIds; } public function setTagIds(?ArrayCollection $tagIds): self { $this->tagIds = $tagIds; return…