PartKeepr\AuthBundle\Services\UserService::protect PHP Method

protect() public method

Protects a given user against changes.
public protect ( User $user )
$user PartKeepr\AuthBundle\Entity\User
    public function protect(User $user)
    {
        $user->setProtected(true);
        $this->entityManager->flush();
    }