public function beforeValidate() { $event = new ModelEvent(); $this->trigger(self::EVENT_BEFORE_VALIDATE, $event); return $event->isValid; }
/** * Method description * * @return mixed The return value */ public function beforeValidate() { if (!empty($this->otherType)) { $this->type = $this->otherType; } return parent::beforeValidate(); }