src/ORM/Mappings/Type/ListType.php
public function deserialize($data, Context $context)
    {
        $values = new ArrayCollection();

        foreach ($data as $element) {
            $values->add($this->elementType->deserialize($element, $context));
        }

        return $values;
    }
public function deserialize($data, Context $context)
    {
        $values = new ArrayCollection();

        foreach ($data as $element) {
            $values->add($this->elementType->deserialize($element, $context));
        }

        return $values;
    }
@param Collection $data
@param Context $context

@return ArrayCollection