private function registerParentOnField(ClassMetadata $subClass, ClassMetadata $parentClass, $fieldName)
 {
     if (!$parentClass->isInheritedField($fieldName) && !$parentClass->isMappedSuperclass) {
         $subClass->setFieldInherited($fieldName, $parentClass->name);
     }
     if (!$parentClass->isDeclaredField($fieldName)) {
         $subClass->setFieldDeclared($fieldName, $parentClass->name);
     }
 }