public function __construct() { $this->publishedAt = new \DateTime(); $this->updatedAt = new \DateTime(); $this->isPdfGenerated = 0; $this->comments = new ArrayCollection(); }