Maps immutable object and object list to single json field.
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
$ composer require sbooker/doctrine-object-mapping-bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
// config/bundles.php
return [
// ...
Sbooker\DoctrineObjectMappingBundle\SbookerDoctrineObjectMappingBundle::class => ['all' => true],
];
# config/packages/sbooker_doctrine_object_mapping.yaml
sbooker_doctrine_object_mapping:
normalizer: your.normalizer.service
denormalizer: your.denormalizer.service
See sbooker/doctrine-object-mapping
documentation.
See symfony/doctrine-bundle
documentation.
See LICENSE file.