src/app/n2n/impl/persistence/orm/property/EmbeddedSelection.php
public function buildValue() {
		$propertyValues = array();
		$notNull = false;
		foreach ($this->propertyValueBuilders as $propertyString => $propertyValueBuilder) {
			if (null !== ($propertyValues[$propertyString] = $propertyValueBuilder->buildValue())) {
				$notNull = true;
			}
		}

		if (!$notNull) return null;
		
		$object = ReflectionUtils::createObject($this->embeddedEntityProperty->getTargetClass());
		foreach ($this->embeddedEntityProperty->getEntityProperties() as $entityProperty) {
			$propertyString = $entityProperty->toPropertyString();
			IllegalStateException::assertTrue(array_key_exists($propertyString, $propertyValues));
			$entityProperty->writeValue($object, $propertyValues[$propertyString]);
		}
		return $object;
	}
public function buildValue() {
		$propertyValues = array();
		$notNull = false;
		foreach ($this->propertyValueBuilders as $propertyString => $propertyValueBuilder) {
			if (null !== ($propertyValues[$propertyString] = $propertyValueBuilder->buildValue())) {
				$notNull = true;
			}
		}

		if (!$notNull) return null;
		
		$object = ReflectionUtils::createObject($this->embeddedEntityProperty->getTargetClass());
		foreach ($this->embeddedEntityProperty->getEntityProperties() as $entityProperty) {
			$propertyString = $entityProperty->toPropertyString();
			IllegalStateException::assertTrue(array_key_exists($propertyString, $propertyValues));
			$entityProperty->writeValue($object, $propertyValues[$propertyString]);
		}
		return $object;
	}
/* (non-PHPdoc)
@see \n2n\persistence\orm\query\select\ValueBuilder::buildValue()