protected function deleteCollection($entities)
    {
        $this->adapter->beginTransaction();

        foreach ($entities as $entity) {
            $this->deleteEntity($entity);
        }

        $this->adapter->commit();

        return $entities;
    }
protected function deleteCollection($entities)
    {
        $this->adapter->beginTransaction();

        foreach ($entities as $entity) {
            $this->deleteEntity($entity);
        }

        $this->adapter->commit();

        return $entities;
    }
protected function deleteCollection ( $ entities ) { $ this -> adapter -> beginTransaction ( ) ; foreach ( $ entities as $ entity ) { $ this -> deleteEntity ( $ entity ) ; } $ this -> adapter -> commit ( ) ; return $ entities ; }
Delete an Entity Collection inside a single db transaction.

@param \Traversable|array $entities

@throws \InvalidArgumentException
@throws MappingException

@return \Traversable|array
Delete an Entity Collection inside a single db transaction .