/** * Construct. **/ public function __construct() { parent::__construct(); $this->widgets = new ArrayCollection(); $this->inheritors = new ArrayCollection(); $this->pages = new ArrayCollection(); }
/** * Construct. **/ public function __construct() { parent::__construct(); $this->publishedAt = new \DateTime(); $this->status = PageStatus::PUBLISHED; $this->homepage = false; }