public function __construct() { $this->ProductCategories = new \Doctrine\Common\Collections\ArrayCollection(); $this->Children = new \Doctrine\Common\Collections\ArrayCollection(); }