Entity/EntityService.php
public function removeEntities(array $ids)
    {

        foreach ($this->getRepository()->getEntitiesById($ids) as $entity) {
            $this->entityManager->remove($entity);
        }

        $this->entityManager->flush();
        return true;
    }
public function removeEntities(array $ids)
    {

        foreach ($this->getRepository()->getEntitiesById($ids) as $entity) {
            $this->entityManager->remove($entity);
        }

        $this->entityManager->flush();
        return true;
    }
public function removeEntities ( array $ ids ) { foreach ( $ this -> getRepository ( ) -> getEntitiesById ( $ ids ) as $ entity ) { $ this -> entityManager -> remove ( $ entity ) ; } $ this -> entityManager -> flush ( ) ; return true ; }
Removes a list of entities.

@param array $ids
@return bool
Removes a list of entities .