dmp / transactional-bundle
Bundle for support of Transactional AOP annotation
Installs: 364
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- dmp/aop-bundle: ^1.0.0
- dmp/cg-lib: ^0.1.1
- doctrine/annotations: ^1.13
- doctrine/orm: ^2.13.2
Requires (Dev)
- matthiasnoback/symfony-dependency-injection-test: ^4.3
- phpunit/phpunit: ^9.5||^10.5
- symfony/http-kernel: *
README
Adding this bundle enables support of @Transactional
advice and pointcut.
The pointcut checks the existence of annotation @Transactional
.
Join points will be executed within a transaction.
If join point executes successfully the EntityManager is flushed and transaction is committed.
If execution of join point threw an exception EntityManager is closed and transaction is rolled back.
Usage
composer require dmp/transactional-bundle
TODO
- add integration test