コード例 #1
0
 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);
     }
 }