symfony/serializer usage with object collection
问题 Symfony serializer lost collection object while denormalizing. Example: We have some entity with collection in the property (I'm using Doctrine ArrayCollection but it is reproduced for any Collection which implement PHP Iterator interface) Let's serialize and deserialize it with Symfony and JMS serializer and compare results: Origin: ^ App\Entity\Entity^ {#195 -rewardItems: Doctrine\Common\Collections\ArrayCollection^ {#179 -elements: array:2 [ 0 => App\Entity\Item^ {#224 -type: 1 } 1 => App