src/AbstractEntityService.php
public function deleteBy($criteria)
    {
        if (!$this->isRepositoryDeletable()) {
            throw $this->createNotDeletableException();
        }

        return $this->trigger(__FUNCTION__, [
            'criteria' => $criteria,
        ]);
    }
public function deleteBy($criteria)
    {
        if (!$this->isRepositoryDeletable()) {
            throw $this->createNotDeletableException();
        }

        return $this->trigger(__FUNCTION__, [
            'criteria' => $criteria,
        ]);
    }
public function deleteBy ( $ criteria ) { if ( ! $ this -> isRepositoryDeletable ( ) ) { throw $ this -> createNotDeletableException ( ) ; } return $ this -> trigger ( __FUNCTION__ , [ 'criteria' => $ criteria , ] ) ; }
Deletes all objects matching the criteria from the repository

@param array|Criteria $criteria The criteria values to match on.
@return mixed
@throws \Zend\EventManager\Exception\InvalidArgumentException
@throws \PolderKnowledge\EntityService\Exception\RuntimeException
Deletes all objects matching the criteria from the repository