[FEATURE] Support getting identifiers from the persistenceManager

This change inroduces 2 new advices for getIdentifierByObject
and getObjectByIdentifier. This will now make sure that the
persistenceManager will return the corresponding values
regardless of the model being an entity or a document.