This seems odd .. I would not expect the metadata to return the proxy class as a name. I think if anything `$className` should be sanitized before being passed to getClassMetadata, can we reproduce the issue?