public function init() { parent::init(); $this->on(self::EVENT_BEFORE_DELETE, [$this, '_beforeDeleteE']); $this->on(self::EVENT_AFTER_DELETE, [$this, '_afterDeleteE']); }
/** * @inheritdoc */ public function init() { parent::init(); $this->on(self::EVENT_BEFORE_DELETE, [$this, "_deleteShops"]); $this->on(self::EVENT_AFTER_DELETE, [$this, "_updateParentAfterDelete"]); }