private function cleanAuthProvider(User $user)
    {
        $providers = $this->objectManager->getRepository('Phraseanet:UsrAuthProvider')
            ->findBy(['user' => $user]);

        foreach ($providers as $provider) {
            $this->objectManager->remove($provider);
        }
    }
private function cleanAuthProvider(User $user)
    {
        $providers = $this->objectManager->getRepository('Phraseanet:UsrAuthProvider')
            ->findBy(['user' => $user]);

        foreach ($providers as $provider) {
            $this->objectManager->remove($provider);
        }
    }
private function cleanAuthProvider ( User $ user ) { $ providers = $ this -> objectManager -> getRepository ( 'Phraseanet:UsrAuthProvider' ) -> findBy ( [ 'user' => $ user ] ) ; foreach ( $ providers as $ provider ) { $ this -> objectManager -> remove ( $ provider ) ; } }
Removes user providers.

@param User $user
Removes user providers .