sbooker / doctrine-object-mapping-bundle
Doctrine object types mapping support
Installs: 4 384
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.2
- sbooker/doctrine-object-mapping: ^1.2
- symfony/config: ^6.4 | ^7.0
- symfony/dependency-injection: ^6.4 | ^7.0
- symfony/http-kernel: ^6.4 | ^7.0
This package is auto-updated.
Last update: 2024-10-22 15:58:40 UTC
README
Maps immutable object and object list to single json field.
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Step 1: Download library
$ composer require sbooker/doctrine-object-mapping-bundle
Step 2: Enable the Bundle (skip this step if your project use Symfony Flex)
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], ];
Step 3: Customize normalizer/denormalizer (skip this step if not needed)
# config/packages/sbooker_doctrine_object_mapping.yaml sbooker_doctrine_object_mapping: normalizer: your.normalizer.service denormalizer: your.denormalizer.service
Step 4: Declare Doctrine types
See sbooker/doctrine-object-mapping
documentation.
Step 5: Register Doctrine types
See symfony/doctrine-bundle
documentation.
License
See LICENSE file.