This bundle provide persistence layer for idempotent consumer using doctrine
Add this package to your project
composer require mrandmrssmith/idempotent-consumer-doctrine-persistence-bundle
- Configure doctrine
- in your
doctrine.yaml
add mapping for this bundle
- in your
mms_idempotent_consumer_doctrine_persistence_bundle:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/vendor/mrandmrssmith/idempotent-consumer-doctrine-persistence-bundle/src/Entity'
prefix: 'MrAndMrsSmith\IdempotentConsumerDoctrinePersistenceBundle\Entity'
alias: IdempotentConsumerDoctrinePersistenceBundle
- Configure your migrations in
doctrine_migrations.yaml
tomigration_paths
add:
'MrAndMrsSmith\IdempotentConsumerDoctrinePersistenceBundle\Persistence\Migrations': '%kernel.project_dir%/vendor/mrandmrssmith/idempotent-consumer-doctrine-persistence-bundle/src/Persistence/Migrations'
- Run migrations as usual
bin/console doctrine:migrations:migrate