protected function setDefaults() { if (!$this->getTimestamp()) { $this->setTimestamp(date('Y-m-d H:i:s')); } }