Update ClassMetadataFactory.php