src/Mapper.php
public function deleteObjects($type, array $query = [])
    {
        $type = $this->getFullType($type);
        if (class_exists($type)) {
            $collection = $type::getCollection();
            $result = $this->mongodb->$collection->remove($query);
            return (bool) $result['ok'];
        }
        return false;
    }
public function deleteObjects($type, array $query = [])
    {
        $type = $this->getFullType($type);
        if (class_exists($type)) {
            $collection = $type::getCollection();
            $result = $this->mongodb->$collection->remove($query);
            return (bool) $result['ok'];
        }
        return false;
    }
public function deleteObjects ( $ type , array $ query = [ ] ) { $ type = $ this -> getFullType ( $ type ) ; if ( class_exists ( $ type ) ) { $ collection = $ type :: getCollection ( ) ; $ result = $ this -> mongodb -> $ collection -> remove ( $ query ) ; return ( bool ) $ result [ 'ok' ] ; } return false ; }
Delete multiple objects
@param string $type Objects of which class should be deleted
@param array $query Mongo select query, only objects matching it are deleted
@return bool true on succes, false on failure
Delete multiple objects