protected function compareCollection(DocumentSchema $document)
    {
        if ($document->getDatabase() != $this->schema->getDatabase()) {
            return false;
        }

        return $document->getCollection() == $this->schema->getCollection();
    }
protected function compareCollection(DocumentSchema $document)
    {
        if ($document->getDatabase() != $this->schema->getDatabase()) {
            return false;
        }

        return $document->getCollection() == $this->schema->getCollection();
    }
protected function compareCollection ( DocumentSchema $ document ) { if ( $ document -> getDatabase ( ) != $ this -> schema -> getDatabase ( ) ) { return false ; } return $ document -> getCollection ( ) == $ this -> schema -> getCollection ( ) ; }
Check if both document schemas belongs to same collection. Documents without declared
collection must be counted as documents from same collection.

@param DocumentSchema $document

@return bool
Check if both document schemas belongs to same collection . Documents without declared collection must be counted as documents from same collection .