src/app/n2n/impl/persistence/orm/property/EmbeddedCustomComparable.php
public function compareWithValue(QueryComparator $queryComparator, $operator, $object) {
		if ($object !== null && !is_a($object, $this->embeddedEntityProperty->getTargetClass()->getName())) {
			throw new CriteriaConflictException('Type ' . $this->embeddedEntityProperty->getTargetClass()->getName() 
					. ' required. Given: ' . TypeUtils::getTypeInfo($object));
		}
		
		$queryComparator = $queryComparator->andGroup();
		foreach ($this->embeddedEntityProperty->getEntityProperties() as $entityProperty) {
			$this->applyComparisonWithValue($queryComparator, $object, $entityProperty, $operator);
		}
	}
public function compareWithValue(QueryComparator $queryComparator, $operator, $object) {
		if ($object !== null && !is_a($object, $this->embeddedEntityProperty->getTargetClass()->getName())) {
			throw new CriteriaConflictException('Type ' . $this->embeddedEntityProperty->getTargetClass()->getName() 
					. ' required. Given: ' . TypeUtils::getTypeInfo($object));
		}
		
		$queryComparator = $queryComparator->andGroup();
		foreach ($this->embeddedEntityProperty->getEntityProperties() as $entityProperty) {
			$this->applyComparisonWithValue($queryComparator, $object, $entityProperty, $operator);
		}
	}
/* (non-PHPdoc)
@see \n2n\persistence\orm\criteria\compare\CustomComparable::compareWithValue()