|
@@ 415-422 (lines=8) @@
|
| 412 |
|
|
| 413 |
|
$sortedId = []; |
| 414 |
|
|
| 415 |
|
foreach ($class->identifier as $identifier) { |
| 416 |
|
if ( ! isset($id[$identifier])) { |
| 417 |
|
throw ORMException::missingIdentifierField($className, $identifier); |
| 418 |
|
} |
| 419 |
|
|
| 420 |
|
$sortedId[$identifier] = $id[$identifier]; |
| 421 |
|
unset($id[$identifier]); |
| 422 |
|
} |
| 423 |
|
|
| 424 |
|
if ($id) { |
| 425 |
|
throw ORMException::unrecognizedIdentifierFields($className, array_keys($id)); |
|
@@ 511-518 (lines=8) @@
|
| 508 |
|
|
| 509 |
|
$sortedId = []; |
| 510 |
|
|
| 511 |
|
foreach ($class->identifier as $identifier) { |
| 512 |
|
if ( ! isset($scalarId[$identifier])) { |
| 513 |
|
throw ORMException::missingIdentifierField($className, $identifier); |
| 514 |
|
} |
| 515 |
|
|
| 516 |
|
$sortedId[$identifier] = $scalarId[$identifier]; |
| 517 |
|
unset($scalarId[$identifier]); |
| 518 |
|
} |
| 519 |
|
|
| 520 |
|
if ($scalarId) { |
| 521 |
|
throw ORMException::unrecognizedIdentifierFields($className, array_keys($scalarId)); |
|
@@ 572-579 (lines=8) @@
|
| 569 |
|
|
| 570 |
|
$sortedId = []; |
| 571 |
|
|
| 572 |
|
foreach ($class->identifier as $identifier) { |
| 573 |
|
if ( ! isset($id[$identifier])) { |
| 574 |
|
throw ORMException::missingIdentifierField($className, $identifier); |
| 575 |
|
} |
| 576 |
|
|
| 577 |
|
$sortedId[$identifier] = $id[$identifier]; |
| 578 |
|
unset($id[$identifier]); |
| 579 |
|
} |
| 580 |
|
|
| 581 |
|
if ($id) { |
| 582 |
|
throw ORMException::unrecognizedIdentifierFields($className, array_keys($id)); |