public function save(SaveEntityInterface $entity)
    {
        $entity = $this->persist($entity);
        $this->flush();

        return $entity;
    }
public function save(SaveEntityInterface $entity)
    {
        $entity = $this->persist($entity);
        $this->flush();

        return $entity;
    }
public function save ( SaveEntityInterface $ entity ) { $ entity = $ this -> persist ( $ entity ) ; $ this -> flush ( ) ; return $ entity ; }
Saves an entity to the database

@param SaveEntityInterface $entity

@return SaveEntityInterface
Saves an entity to the database