public function Insert() { if ($this->DateTime == null) { $this->DateTime = date('Y-m-d H:i:s'); } parent::Insert(); }
public function Insert() { if ($this->Created == null) { $this->Created = date('Y-m-d H:i:s'); $this->Updated = $this->Created; } $this->SearchHelper = $this->User->Name . $this->Text; parent::Insert(); }