Entity/EntityService.php
public function removeEntity($entity)
    {
        $this->entityManager->remove($entity);
        $this->entityManager->flush();
        return true;
    }
public function removeEntity($entity)
    {
        $this->entityManager->remove($entity);
        $this->entityManager->flush();
        return true;
    }
public function removeEntity ( $ entity ) { $ this -> entityManager -> remove ( $ entity ) ; $ this -> entityManager -> flush ( ) ; return true ; }
Removes the entity.

@param object $entity
@return bool
Removes the entity .