/** * Set field before validation check */ public function beforeValidationOnCreate() { $this->date_logged = Utils::getCurrentDateTime(); }
public function beforeValidationOnUpdate() { $this->updated_at = Utils::getCurrentDateTime(); }
/** * Set field before validation check */ public function beforeValidationOnCreate() { $this->date_logged = Utils::getCurrentDateTime(); }
public function beforeValidationOnUpdate() { $this->updated_at = Utils::getCurrentDateTime(); }