src/app/n2n/impl/persistence/orm/property/relation/util/ToManyValueHasher.php
public function matches(array $entityIds, ToManyValueHash $valueHash) {
		// this means that other array object has been asigned
		if (!$valueHash->isInitialized()) return false;
		
		$vhIdReps = $valueHash->getIdReps(true);
		
		foreach ($entityIds as $entityId) {
			$entityIdRep = $this->targetIdProperty->valueToRep($entityId);
			if (!isset($vhIdReps[$entityIdRep])) return false;
			unset($vhIdReps[$entityIdRep]);
		}

		return empty($vhIdReps);
	}
public function matches(array $entityIds, ToManyValueHash $valueHash) {
		// this means that other array object has been asigned
		if (!$valueHash->isInitialized()) return false;
		
		$vhIdReps = $valueHash->getIdReps(true);
		
		foreach ($entityIds as $entityId) {
			$entityIdRep = $this->targetIdProperty->valueToRep($entityId);
			if (!isset($vhIdReps[$entityIdRep])) return false;
			unset($vhIdReps[$entityIdRep]);
		}

		return empty($vhIdReps);
	}
}