public function save(Entity $entity) {
    $this->_em->persist($entity);
    $this->_em->flush();
    return $this;
  }
public function save(Entity $entity) {
    $this->_em->persist($entity);
    $this->_em->flush();
    return $this;
  }
public function save ( Entity $ entity ) { $ this -> _em -> persist ( $ entity ) ; $ this -> _em -> flush ( ) ; return $ this ; }
Persisted das Entity und flushed den EntityManager
Persisted das Entity und flushed den EntityManager