|
@@ 403-411 (lines=9) @@
|
| 400 |
|
$id = [$class->identifier[0] => $id]; |
| 401 |
|
} |
| 402 |
|
|
| 403 |
|
foreach ($id as $i => $value) { |
| 404 |
|
if (is_object($value) && $this->metadataFactory->hasMetadataFor(StaticClassNameConverter::getClass($value))) { |
| 405 |
|
$id[$i] = $this->unitOfWork->getSingleIdentifierValue($value); |
| 406 |
|
|
| 407 |
|
if ($id[$i] === null) { |
| 408 |
|
throw ORMInvalidArgumentException::invalidIdentifierBindingEntity(); |
| 409 |
|
} |
| 410 |
|
} |
| 411 |
|
} |
| 412 |
|
|
| 413 |
|
$sortedId = []; |
| 414 |
|
|
|
@@ 560-568 (lines=9) @@
|
| 557 |
|
$id = [$class->identifier[0] => $id]; |
| 558 |
|
} |
| 559 |
|
|
| 560 |
|
foreach ($id as $i => $value) { |
| 561 |
|
if (is_object($value) && $this->metadataFactory->hasMetadataFor(StaticClassNameConverter::getClass($value))) { |
| 562 |
|
$id[$i] = $this->unitOfWork->getSingleIdentifierValue($value); |
| 563 |
|
|
| 564 |
|
if ($id[$i] === null) { |
| 565 |
|
throw ORMInvalidArgumentException::invalidIdentifierBindingEntity(); |
| 566 |
|
} |
| 567 |
|
} |
| 568 |
|
} |
| 569 |
|
|
| 570 |
|
$sortedId = []; |
| 571 |
|
|