https://github.com/doctrine/DoctrinePHPCRBundle/pull/102