protected function deleteEntity($entity)
    {
        $this->checkEntityType($entity);

        $delete = new Delete($this->aggregate($entity), $this->newQueryBuilder());

        $delete->execute();
    }
protected function deleteEntity($entity)
    {
        $this->checkEntityType($entity);

        $delete = new Delete($this->aggregate($entity), $this->newQueryBuilder());

        $delete->execute();
    }
protected function deleteEntity ( $ entity ) { $ this -> checkEntityType ( $ entity ) ; $ delete = new Delete ( $ this -> aggregate ( $ entity ) , $ this -> newQueryBuilder ( ) ) ; $ delete -> execute ( ) ; }
Delete a single entity from the database.

@param Mappable $entity

@throws \InvalidArgumentException
@throws MappingException

@return void
Delete a single entity from the database .