Beispiel #1
0
 /**
  * Check if both documents belongs to same collection. Documents without declared collection
  * must be counted as documents from same collection.
  *
  * @param DocumentSchema $document
  * @return bool
  */
 protected function compareCollection(DocumentSchema $document)
 {
     return $document->getCollection() == $this->getCollection() && $document->getDatabase() == $this->getDatabase();
 }