setProtected() public method

public setProtected ( boolean $protected )
$protected boolean
示例#1
0
 /**
  * Unprotects a given user against changes.
  *
  * @param User $user
  */
 public function unprotect(User $user)
 {
     $user->setProtected(false);
     $this->entityManager->flush();
 }