src/Utility/DomainEntityBuilder.php
private function processPropertyValues($instance, $property, $model, $values)
    {
        $changed = false;

        foreach ($values as &$value) {
            if (!$this->isMorhing($model, $value)) {
                continue;
            }
            $newType = $model->getType();
            //$value = new $newType( (array) $value );
            $value = static::create($newType, (array) $value);
            $changed = true;
        }
        if ($changed) {
            $property->setValue($instance, $values);
        }
    }
private function processPropertyValues($instance, $property, $model, $values)
    {
        $changed = false;

        foreach ($values as &$value) {
            if (!$this->isMorhing($model, $value)) {
                continue;
            }
            $newType = $model->getType();
            //$value = new $newType( (array) $value );
            $value = static::create($newType, (array) $value);
            $changed = true;
        }
        if ($changed) {
            $property->setValue($instance, $values);
        }
    }
Converts object values into domain model entities.
This function is array-compatible version of @see processPropertyValue
@param mixed $instance - contains empty of almost ready domain model entity
@param ReflectionProperty $property
@param AbstractEntity $model
@param array stdClass $values