public function beforeValidate() { if (parent::beforeValidate()) { return true; } else { return false; } }
public function beforeValidate() { if (parent::beforeValidate()) { $this->status = self::STATUS_ACTIVE; return true; } else { return false; } }