public function update(array $collection)
    {
        $this->_auth = Yii::$app->authManager;
        $this->generateItems($collection);
        $this->manageItems();
        $this->manageRelations();
        if ($this->_auth instanceof \yii\rbac\DbManager) {
            $this->_auth->invalidateCache();
        }
    }