public function removeDocument(AbstractEntity $document, $options = [])
    {
        return $this->removeByKeys($this->_collectionName, [$document->getInternalKey()], $options);
    }
public function removeDocument(AbstractEntity $document, $options = [])
    {
        return $this->removeByKeys($this->_collectionName, [$document->getInternalKey()], $options);
    }
public function removeDocument ( AbstractEntity $ document , $ options = [ ] ) { return $ this -> removeByKeys ( $ this -> _collectionName , [ $ document -> getInternalKey ( ) ] , $ options ) ; }
Removes specified document from collection

@param AbstractEntity $document
@param                $options

@return array - an array containing an attribute 'removed' with the number of documents that were deleted, an an array 'ignored' with the number of not removed keys/documents
Removes specified document from collection