This attempts to reproduce the problems laid out in doctrine/mongodb-odm#1495 and symfony/symfony#12533.
To run this you'll need a working docker setup. Run the following commands to clone this gist and run the docker image:
git clone [email protected]:a367e895e6c55f7fb93870dcba46efa9.git php-rename-failure
cd php-rename-failure
docker build -t php-rename-failure .
docker run -it --rm php-rename-failure