src/app/n2n/impl/persistence/orm/property/EmbeddedEntityProperty.php
public function mergeValue($object, $sameEntity, MergeOperation $mergeOperation) {
		if ($object === null) return null;
		
		$mergedObject = null;
		if ($sameEntity) {
			$mergedObject = $object;
		} else {
			$mergedObject = ReflectionUtils::createObject($this->targetClass);
		}
		
		foreach ($this->properties as $property) {
			$mergedPropertyValue = $property->mergeValue($property->readValue($object), $sameEntity, $mergeOperation);
			$property->writeValue($mergedObject, $mergedPropertyValue);
		}
		
		return $mergedObject;
	}
public function mergeValue($object, $sameEntity, MergeOperation $mergeOperation) {
		if ($object === null) return null;
		
		$mergedObject = null;
		if ($sameEntity) {
			$mergedObject = $object;
		} else {
			$mergedObject = ReflectionUtils::createObject($this->targetClass);
		}
		
		foreach ($this->properties as $property) {
			$mergedPropertyValue = $property->mergeValue($property->readValue($object), $sameEntity, $mergeOperation);
			$property->writeValue($mergedObject, $mergedPropertyValue);
		}
		
		return $mergedObject;
	}
/* (non-PHPdoc)
@see \n2n\persistence\orm\property\EntityProperty::mergeValue()