public function persist($user): void
    {
        $this->om->persist($user);
        $this->om->flush();
    }
public function persist($user): void
    {
        $this->om->persist($user);
        $this->om->flush();
    }
public function persist ( $ user ) : void { $ this -> om -> persist ( $ user ) ; $ this -> om -> flush ( ) ; }
Persist the user entity.

@param object $user
Persist the user entity .