public function delete()
    {
        if (!$this->isNewRecord) {
            $item = Yii::$app->authManager->getRole($this->name);
            if ($item) {
                Yii::$app->authManager->remove($item);
            }
        }
    }
public function delete()
    {
        if (!$this->isNewRecord) {
            $item = Yii::$app->authManager->getRole($this->name);
            if ($item) {
                Yii::$app->authManager->remove($item);
            }
        }
    }
public function delete ( ) { if ( ! $ this -> isNewRecord ) { $ item = Yii :: $ app -> authManager -> getRole ( $ this -> name ) ; if ( $ item ) { Yii :: $ app -> authManager -> remove ( $ item ) ; } } }
Delete current item
Delete current item