protected function afterSave() { if ((isset($this->originalAttributeValues['role']) || $this->isNewModel) && $this->role != null && $this->role->id > 0) { ReadPermissionsOptimizationUtil::roleParentSet($this); } parent::afterSave(); }
protected function afterSave() { if ((isset($this->originalAttributeValues['role']) || $this->isNewModel) && $this->role != null && $this->role->id > 0) { AllPermissionsOptimizationUtil::roleParentSet($this); ReadPermissionsSubscriptionUtil::roleParentSet(); } if (isset($this->originalAttributeValues['role']) && $this->originalAttributeValues['role'][1] > 0) { $this->forgetPermissionsRightsAndPoliciesCache(); } static::$roleIdToRoleCache[intval($this->id)] = $this; parent::afterSave(); }
protected function afterSave() { parent::afterSave(); if ($this->rightsChanged) { RightsCache::forgetAll(); $this->rightsChanged = false; } if ($this->policiesChanged) { PoliciesCache::forgetAll(); $this->policiesChanged = false; } }
protected function afterSave() { InQueueUtil::resolveToAddJobToQueueAfterSaveOfModel($this, 'ByTimeWorkflowInQueue'); parent::afterSave(); }
/** * Handle Permitable Attachment/Detachment after model has been saved. */ protected function afterSave() { parent::afterSave(); $this->resolvePermitablesToUpdate(); $this->permissionsChanged = false; }