public function __construct() { $this->units = new ArrayCollection(); $this->setDateTime(new \DateTime()); }