Parent class name generation is incorrect

The 'resolveParentType()` method returns the actual name of the class instead of returning the generated one.