src/app/n2n/impl/persistence/orm/property/ToManyEntityProperty.php
public function mergeValue($value, $sameEntity, MergeOperation $mergeOperation) {
		if ($value === null) return null;
	
		if ($value instanceof ArrayObjectProxy && !$value->isInitialized()) return $value;
		
		$mergedEntities = new \ArrayObject();
		if ($this->relation->getCascadeType() & CascadeType::MERGE) {
			foreach ($value as $key => $targetEntity) {
				$mergedEntities[$key] = $mergeOperation->mergeEntity($targetEntity);
			}
		}
		return $mergedEntities;
	}
public function mergeValue($value, $sameEntity, MergeOperation $mergeOperation) {
		if ($value === null) return null;
	
		if ($value instanceof ArrayObjectProxy && !$value->isInitialized()) return $value;
		
		$mergedEntities = new \ArrayObject();
		if ($this->relation->getCascadeType() & CascadeType::MERGE) {
			foreach ($value as $key => $targetEntity) {
				$mergedEntities[$key] = $mergeOperation->mergeEntity($targetEntity);
			}
		}
		return $mergedEntities;
	}
/* (non-PHPdoc)
@see \n2n\persistence\orm\property\EntityProperty::mergeValue()