|
@@ 403-410 (lines=8) @@
|
| 400 |
|
|
| 401 |
|
$sortedId = []; |
| 402 |
|
|
| 403 |
|
foreach ($class->identifier as $identifier) { |
| 404 |
|
if ( ! isset($id[$identifier])) { |
| 405 |
|
throw ORMException::missingIdentifierField($class->name, $identifier); |
| 406 |
|
} |
| 407 |
|
|
| 408 |
|
$sortedId[$identifier] = $id[$identifier]; |
| 409 |
|
unset($id[$identifier]); |
| 410 |
|
} |
| 411 |
|
|
| 412 |
|
if ($id) { |
| 413 |
|
throw ORMException::unrecognizedIdentifierFields($class->name, array_keys($id)); |
|
@@ 480-487 (lines=8) @@
|
| 477 |
|
|
| 478 |
|
$sortedId = []; |
| 479 |
|
|
| 480 |
|
foreach ($class->identifier as $identifier) { |
| 481 |
|
if ( ! isset($id[$identifier])) { |
| 482 |
|
throw ORMException::missingIdentifierField($class->name, $identifier); |
| 483 |
|
} |
| 484 |
|
|
| 485 |
|
$sortedId[$identifier] = $id[$identifier]; |
| 486 |
|
unset($id[$identifier]); |
| 487 |
|
} |
| 488 |
|
|
| 489 |
|
if ($id) { |
| 490 |
|
throw ORMException::unrecognizedIdentifierFields($class->name, array_keys($id)); |