Skip to content

ilya-antipenko/doctrine-uow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doctrine ORM Internals. UnitOfWork

This repository shows an example of unsafe behaviour of Doctrine2 in case of using flush inside postFlush event.

Slides

https://www.slideshare.net/IlyaAntipenko/doctrine-orm-internals-unitofwork-124771728

Install

Run following commands to install application

composer install
bin/console doctrine:schema:update --force

Steps to reproduce

  1. Open AppBundle\Command\AppTestCommand
  2. Uncomment code with number 1 and run bin/console app:test
  3. Uncomment code with number 2 and run bin/console app:test

About

Using flush inside lifecycle events (postFlush here)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published