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

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

        return $this->trigger(__FUNCTION__, [
            'entity' => $entity,
        ]);
    }
public function delete ( $ entity ) { if ( ! $ this -> isRepositoryDeletable ( ) ) { throw $ this -> createNotDeletableException ( ) ; } return $ this -> trigger ( __FUNCTION__ , [ 'entity' => $ entity , ] ) ; }
Deletes the given object from the repository

@param object $entity The entity to delete.
@return mixed
@throws \Zend\EventManager\Exception\InvalidArgumentException
@throws \PolderKnowledge\EntityService\Exception\RuntimeException
Deletes the given object from the repository