public function markAsCreated() { $this->updatedAt = new \DateTime(); if (!$this->createdAt) { $this->createdAt = $this->updatedAt; } }