@@ 191-196 (lines=6) @@ | ||
188 | } |
|
189 | } |
|
190 | ||
191 | if (count($targetMetadata->getIdentifierColumnNames()) != count($assoc['joinTable']['inverseJoinColumns'])) { |
|
192 | $ce[] = "The inverse join columns of the many-to-many table '" . $assoc['joinTable']['name'] . "' " . |
|
193 | "have to contain to ALL identifier columns of the target entity '". $targetMetadata->name . "', " . |
|
194 | "however '" . implode(", ", array_diff($targetMetadata->getIdentifierColumnNames(), array_values($assoc['relationToTargetKeyColumns']))) . |
|
195 | "' are missing."; |
|
196 | } |
|
197 | ||
198 | if (count($class->getIdentifierColumnNames()) != count($assoc['joinTable']['joinColumns'])) { |
|
199 | $ce[] = "The join columns of the many-to-many table '" . $assoc['joinTable']['name'] . "' " . |
|
@@ 198-203 (lines=6) @@ | ||
195 | "' are missing."; |
|
196 | } |
|
197 | ||
198 | if (count($class->getIdentifierColumnNames()) != count($assoc['joinTable']['joinColumns'])) { |
|
199 | $ce[] = "The join columns of the many-to-many table '" . $assoc['joinTable']['name'] . "' " . |
|
200 | "have to contain to ALL identifier columns of the source entity '". $class->name . "', " . |
|
201 | "however '" . implode(", ", array_diff($class->getIdentifierColumnNames(), array_values($assoc['relationToSourceKeyColumns']))) . |
|
202 | "' are missing."; |
|
203 | } |
|
204 | ||
205 | } elseif ($assoc['type'] & ClassMetadataInfo::TO_ONE) { |
|
206 | $identifierColumns = $targetMetadata->getIdentifierColumnNames(); |