|
@@ 465-469 (lines=5) @@
|
| 462 |
|
|
| 463 |
|
// Complete id mapping |
| 464 |
|
if (isset($mapping['id']) && $mapping['id'] === true) { |
| 465 |
|
if (isset($mapping['orphanRemoval']) && $mapping['orphanRemoval'] == true) { |
| 466 |
|
throw new MappingException( |
| 467 |
|
sprintf('Illegal orphanRemoval on identifier association %s for %s', $mapping['field'], $this->name) |
| 468 |
|
); |
| 469 |
|
} |
| 470 |
|
|
| 471 |
|
if (!in_array($mapping['field'], $this->identifier, true)) { |
| 472 |
|
$this->identifier[] = $mapping['field']; |
|
@@ 487-491 (lines=5) @@
|
| 484 |
|
$mapping['isOwningSide'] = false; |
| 485 |
|
} |
| 486 |
|
|
| 487 |
|
if (isset($mapping['id']) && $mapping['id'] === true && $mapping['type'] & self::TO_MANY) { |
| 488 |
|
throw new MappingException( |
| 489 |
|
sprintf('Illegal toMany identifier association %s for %s', $mapping['field'], $this->name) |
| 490 |
|
); |
| 491 |
|
} |
| 492 |
|
|
| 493 |
|
// Fetch mode. Default fetch mode to LAZY, if not set. |
| 494 |
|
if ( ! isset($mapping['fetch'])) { |