/** * @inheritDoc * @return bool|void * @throws \yii\base\NotSupportedException * @throws \yii\db\Exception */ public function beforeDelete() { if (!$this->ownDeleteHandler) { return parent::beforeDelete(); } return true; }