Code Duplication    Length = 4-4 lines in 2 locations

lib/Doctrine/ORM/Tools/SchemaValidator.php 2 locations

@@ 116-119 (lines=4) @@
113
            }
114
115
            if ($assoc['mappedBy']) {
116
                if ($targetMetadata->hasField($assoc['mappedBy'])) {
117
                    $ce[] = "The association " . $class->name . "#" . $fieldName . " refers to the owning side ".
118
                            "field " . $assoc['targetEntity'] . "#" . $assoc['mappedBy'] . " which is not defined as association, but as field.";
119
                }
120
                if (!$targetMetadata->hasAssociation($assoc['mappedBy'])) {
121
                    $ce[] = "The association " . $class->name . "#" . $fieldName . " refers to the owning side ".
122
                            "field " . $assoc['targetEntity'] . "#" . $assoc['mappedBy'] . " which does not exist.";
@@ 136-139 (lines=4) @@
133
            }
134
135
            if ($assoc['inversedBy']) {
136
                if ($targetMetadata->hasField($assoc['inversedBy'])) {
137
                    $ce[] = "The association " . $class->name . "#" . $fieldName . " refers to the inverse side ".
138
                            "field " . $assoc['targetEntity'] . "#" . $assoc['inversedBy'] . " which is not defined as association.";
139
                }
140
141
                if (!$targetMetadata->hasAssociation($assoc['inversedBy'])) {
142
                    $ce[] = "The association " . $class->name . "#" . $fieldName . " refers to the inverse side ".