|
@@ 395-401 (lines=7) @@
|
| 392 |
|
$class = $this->metadataFactory->getMetadataFor(ltrim($entityName, '\\')); |
| 393 |
|
$className = $class->getClassName(); |
| 394 |
|
|
| 395 |
|
if (! is_array($id)) { |
| 396 |
|
if ($class->isIdentifierComposite()) { |
| 397 |
|
throw ORMInvalidArgumentException::invalidCompositeIdentifier(); |
| 398 |
|
} |
| 399 |
|
|
| 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))) { |
|
@@ 487-493 (lines=7) @@
|
| 484 |
|
$class = $this->metadataFactory->getMetadataFor(ltrim($entityName, '\\')); |
| 485 |
|
$className = $class->getClassName(); |
| 486 |
|
|
| 487 |
|
if ( ! is_array($id)) { |
| 488 |
|
if ($class->isIdentifierComposite()) { |
| 489 |
|
throw ORMInvalidArgumentException::invalidCompositeIdentifier(); |
| 490 |
|
} |
| 491 |
|
|
| 492 |
|
$id = [$class->identifier[0] => $id]; |
| 493 |
|
} |
| 494 |
|
|
| 495 |
|
$scalarId = []; |
| 496 |
|
|
|
@@ 552-558 (lines=7) @@
|
| 549 |
|
$class = $this->metadataFactory->getMetadataFor(ltrim($entityName, '\\')); |
| 550 |
|
$className = $class->getClassName(); |
| 551 |
|
|
| 552 |
|
if ( ! is_array($id)) { |
| 553 |
|
if ($class->isIdentifierComposite()) { |
| 554 |
|
throw ORMInvalidArgumentException::invalidCompositeIdentifier(); |
| 555 |
|
} |
| 556 |
|
|
| 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))) { |