https://github.com/doctrine/phpcr-odm/pull/253 got merged and the issue should be fixed. can you try in our project if you can remove this workaround when you use the latest phpcr-odm, and adapt this doc if it works?