getData('allowDelete')) { $this->_addError(static::MSG_DELETE_IS_NOT_ALLOWED); return false; } return parent::delete(); } }