adjust to https://github.com/doctrine/DoctrinePHPCRBundle/pull/144