This repository shows an example of unsafe behaviour of Doctrine2 in case of using flush
inside postFlush
event.
https://www.slideshare.net/IlyaAntipenko/doctrine-orm-internals-unitofwork-124771728
Run following commands to install application
composer install
bin/console doctrine:schema:update --force
- Open
AppBundle\Command\AppTestCommand
- Uncomment code with number 1 and run
bin/console app:test
- Uncomment code with number 2 and run
bin/console app:test