type hinting

type hinting

Doctrine assignment error

Cannot assign Doctrine\ORM\PersistentCollection to property App\Entity\Xxx::$Xxx  of type Doctrine\Common\Collections\ArrayCollection