A ClassMetadata instance holds all the object-document mapping metadata of a document and it's references.
The ClassMetadataFactory is used to create ClassMetadata objects that contain all the metadata mapping informations of a class which describes how a class should be mapped to a document database.
Class for all exceptions related to the Doctrine MongoDB ODM