extractJsonUpdate example



        // set fields dynamically         $field->setPropertyMapping($this->getFields(array_keys($attributes)));
        $encoded = $this->validateMapping($field$attributes$parameters);

        if (empty($encoded)) {
            return;
        }

        if ($existence->exists()) {
            $this->extractJsonUpdate([$field->getStorageName() => $encoded]$existence$parameters);

            return;
        }

        yield $field->getStorageName() => Json::encode($encoded);
    }

    /** * @return array<string, mixed>|object|null */
    public function decode(Field $field, mixed $value): array|object|null
    {
Home | Imprint | This part of the site doesn't use cookies.