public function persistUser(User $user)
    {
        $this->objectManager->persist($user);
        $this->objectManager->flush();

        return $user;
    }
public function persistUser(User $user)
    {
        $this->objectManager->persist($user);
        $this->objectManager->flush();

        return $user;
    }
public function persistUser ( User $ user ) { $ this -> objectManager -> persist ( $ user ) ; $ this -> objectManager -> flush ( ) ; return $ user ; }
Persist a user.

@param User $user

@return User
Persist a user .