Denormalize the input into an instance of the given class, using the Symfony Serializer denormalizer.
See also DenormalizerTask for the task equivalent.
- Service:
CleverAge\ProcessBundle\Transformer\Serialization\DenormalizeTransformer - Transformer code:
denormalize
any: data supported by the configured denormalizers (usually an array)
any: the denormalized value, usually an instance of class
| Code | Type | Required | Default | Description |
|---|---|---|---|---|
class |
string |
X | Target type: a fully qualified class name, or e.g. App\Entity\Author[] for a collection |
|
format |
string|null |
null |
Format passed to the denormalizer | |
context |
array |
[] |
Denormalization context (groups, object_to_populate…) |
- Denormalize an array into an
Authorentity
# Transformer options level
denormalize:
class: 'App\Entity\Author'- Denormalize using serialization groups
# Transformer options level
denormalize:
class: 'App\Entity\Book'
context:
groups: [import]