public function remove($entity)
    {
        $entity->setState(0);
        $this->em->persist($entity);
        $this->em->flush();
    }
public function remove($entity)
    {
        $entity->setState(0);
        $this->em->persist($entity);
        $this->em->flush();
    }
public function remove ( $ entity ) { $ entity -> setState ( 0 ) ; $ this -> em -> persist ( $ entity ) ; $ this -> em -> flush ( ) ; }
We don't delete the user, but just disable it
@param unknown_type $entity
We don t delete the user but just disable it