Symfony 3.4 Project to debug https://stackoverflow.com/questions/51426933/symfony-3-4-unexpected-doctrine-entity-state-in-service
I made this project to show how to obtain the bug that I'm talking about in the following StackOverflow post
This bug occurs from doctrine/doctrine-bundle v1.6.4 : doctrine.orm.entity_manager.abstract as lazy
To run the project just clone it and install the vendors, then follow the instructions below in dev env
php bin/console doctrine:database:create
php bin/console doctrine:fixtures:load --purge-with-truncate
State of $superEntity is 3 and should be 1
State of $superEntity is 1 and should be 1