public function __construct() { $this->shapes = new ArrayCollection(); $this->mainImage = new ArrayCollection(); // Note: although it's a collection, we make sure that there's only one image present at all time parent::__construct(); }
public function __construct() { $this->questions = new \Doctrine\Common\Collections\ArrayCollection(); parent::__construct(); }