MetadataCache is set according to the dm->config in the ClassMetadataFactory constructor.
Merge branch 'metadata_cache'