Try to resolve model and id in multiple managers

In the method ``resolveModelAndIdentifier``, we try to get the class metadata from the current manager. If the class is managed by another manager, it will throws an exception.

With this PR, the class manager is now searched through the doctrine registries (orm and mongodb), so we can now get the metadata even if working with different managers.