see https://github.com/doctrine/phpcr-odm/pull/329