private function cleanFtpExports(User $user)
    {
       $elements = $this->objectManager->getRepository('Phraseanet:FtpExport')
               ->findBy(['user' => $user]);

       foreach ($elements as $element) {
           $this->objectManager->remove($element);
       }
    }
private function cleanFtpExports(User $user)
    {
       $elements = $this->objectManager->getRepository('Phraseanet:FtpExport')
               ->findBy(['user' => $user]);

       foreach ($elements as $element) {
           $this->objectManager->remove($element);
       }
    }
private function cleanFtpExports ( User $ user ) { $ elements = $ this -> objectManager -> getRepository ( 'Phraseanet:FtpExport' ) -> findBy ( [ 'user' => $ user ] ) ; foreach ( $ elements as $ element ) { $ this -> objectManager -> remove ( $ element ) ; } }
Removes user ftp export.

@param User $user
Removes user ftp export .