public function assignRoles() {
    $auth = Yii::$app->authManager;
    $auth->assign($auth->getRole(Access::ROLE_USER), $this->id);
  }
public function assignRoles() {
    $auth = Yii::$app->authManager;
    $auth->assign($auth->getRole(Access::ROLE_USER), $this->id);
  }
public function assignRoles ( ) { $ auth = Yii :: $ app -> authManager ; $ auth -> assign ( $ auth -> getRole ( Access :: ROLE_USER ) , $ this -> id ) ; }
Assign roles to new user
Overwrite this method for own purposes
Assign roles to new user Overwrite this method for own purposes