|
@@ 664-668 (lines=5) @@
|
| 661 |
|
|
| 662 |
|
// Complete id mapping |
| 663 |
|
if (isset($mapping['id']) && $mapping['id'] === true) { |
| 664 |
|
if (isset($mapping['orphanRemoval']) && $mapping['orphanRemoval'] == true) { |
| 665 |
|
throw new MappingException( |
| 666 |
|
sprintf('Illegal orphanRemoval on identifier association %s for %s', $mapping['field'], $this->name) |
| 667 |
|
); |
| 668 |
|
} |
| 669 |
|
|
| 670 |
|
if (!in_array($mapping['field'], $this->identifier, true)) { |
| 671 |
|
$this->identifier[] = $mapping['field']; |
|
@@ 686-690 (lines=5) @@
|
| 683 |
|
$mapping['isOwningSide'] = false; |
| 684 |
|
} |
| 685 |
|
|
| 686 |
|
if (isset($mapping['id']) && $mapping['id'] === true && $mapping['type'] & self::TO_MANY) { |
| 687 |
|
throw new MappingException( |
| 688 |
|
sprintf('Illegal toMany identifier association %s for %s', $mapping['field'], $this->name) |
| 689 |
|
); |
| 690 |
|
} |
| 691 |
|
|
| 692 |
|
// Fetch mode. Default fetch mode to LAZY, if not set. |
| 693 |
|
if (!isset($mapping['fetch'])) { |