@@ 377-387 (lines=11) @@ | ||
374 | ||
375 | $joinColumns = []; |
|
376 | ||
377 | if (isset($oneToOneElement['joinColumn'])) { |
|
378 | $joinColumns[] = $this->joinColumnToArray($oneToOneElement['joinColumn']); |
|
379 | } else if (isset($oneToOneElement['joinColumns'])) { |
|
380 | foreach ($oneToOneElement['joinColumns'] as $joinColumnName => $joinColumnElement) { |
|
381 | if ( ! isset($joinColumnElement['name'])) { |
|
382 | $joinColumnElement['name'] = $joinColumnName; |
|
383 | } |
|
384 | ||
385 | $joinColumns[] = $this->joinColumnToArray($joinColumnElement); |
|
386 | } |
|
387 | } |
|
388 | ||
389 | $mapping['joinColumns'] = $joinColumns; |
|
390 | } |
|
@@ 470-480 (lines=11) @@ | ||
467 | ||
468 | $joinColumns = []; |
|
469 | ||
470 | if (isset($manyToOneElement['joinColumn'])) { |
|
471 | $joinColumns[] = $this->joinColumnToArray($manyToOneElement['joinColumn']); |
|
472 | } else if (isset($manyToOneElement['joinColumns'])) { |
|
473 | foreach ($manyToOneElement['joinColumns'] as $joinColumnName => $joinColumnElement) { |
|
474 | if ( ! isset($joinColumnElement['name'])) { |
|
475 | $joinColumnElement['name'] = $joinColumnName; |
|
476 | } |
|
477 | ||
478 | $joinColumns[] = $this->joinColumnToArray($joinColumnElement); |
|
479 | } |
|
480 | } |
|
481 | ||
482 | $mapping['joinColumns'] = $joinColumns; |
|
483 |