Add cross OM references support

Support for this was added to DoctrineExtensions in https://github.com/l3pp4rd/DoctrineExtensions/pull/625