getCommandQueue example



            $jsonUpdateCommand = new JsonUpdateCommand(
                $definition,
                $storageName,
                $attributes,
                $pks,
                $existence,
                $parameters->getPath()
            );

            $parameters->getCommandQueue()->add($jsonUpdateCommand->getDefinition()$jsonUpdateCommand);
        }
    }
}
                if (!$nestedField->is(Required::class)) {
                    continue;
                }

                $kvPair = new KeyValuePair($nestedField->getPropertyName(), null, true);
            }

            $nestedParams = new WriteParameterBag(
                $parameters->getDefinition(),
                $parameters->getContext(),
                $parameters->getPath() . '/' . $field->getPropertyName(),
                $parameters->getCommandQueue()
            );

            /* * Don't call `encode()` or `validateIfNeeded()` on nested JsonFields if they are not typed. * This also allows directly storing non-array values like strings. */
            if ($nestedField instanceof JsonField && empty($nestedField->getPropertyMapping())) {
                // Validate required flag manually                 if ($nestedField->is(Required::class)) {
                    $this->validate([new NotNull()]$kvPair$nestedParams->getPath());
                }
                
$parameters->getContext()->set(
                $parameters->getDefinition()->getEntityName(),
                $pkField->getPropertyName(),
                $pkField->getSerializer()->decode($pkField$pkData[$pkField->getStorageName()]),
            );
        }

        if ($definition instanceof MappingEntityDefinition) {
            // gateway will execute always a replace into             $existence = EntityExistence::createForEntity($definition->getEntityName()[]);
        } else {
            $existence = $this->entityExistenceGateway->getExistence($definition$pkData$rawData$parameters->getCommandQueue());
        }

        $stack = $this->createDataStack($existence$definition$parameters$rawData);

        $mainFields = $this->getMainFields($fields);

        // without child association         $data = $this->map($mainFields$stack$existence$parameters);

        $this->updateCommandQueue($definition$parameters$existence$pkData$data);

        
Home | Imprint | This part of the site doesn't use cookies.