/** * @inheritDoc */ public function beforeUpdate() { if ($this->parentIdField) { $this->checkOperation(); } parent::beforeUpdate(); }