@@ 543-547 (lines=5) @@ | ||
540 | ||
541 | // Complete id mapping |
|
542 | if (isset($mapping['id']) && $mapping['id'] === true) { |
|
543 | if (isset($mapping['orphanRemoval']) && $mapping['orphanRemoval'] == true) { |
|
544 | throw new MappingException( |
|
545 | sprintf('Illegal orphanRemoval on identifier association %s for %s', $mapping['field'], $this->name) |
|
546 | ); |
|
547 | } |
|
548 | ||
549 | if (!in_array($mapping['field'], $this->identifier, true)) { |
|
550 | $this->identifier[] = $mapping['field']; |
|
@@ 565-569 (lines=5) @@ | ||
562 | $mapping['isOwningSide'] = false; |
|
563 | } |
|
564 | ||
565 | if (isset($mapping['id']) && $mapping['id'] === true && $mapping['type'] & self::TO_MANY) { |
|
566 | throw new MappingException( |
|
567 | sprintf('Illegal toMany identifier association %s for %s', $mapping['field'], $this->name) |
|
568 | ); |
|
569 | } |
|
570 | ||
571 | // Fetch mode. Default fetch mode to LAZY, if not set. |
|
572 | if (!isset($mapping['fetch'])) { |