lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php 1 location
|
@@ 177-186 (lines=10) @@
|
| 174 |
|
$entityKey = $this->rsm->entityMappings[$dqlAlias] ?: 0; |
| 175 |
|
|
| 176 |
|
// if this row has a NULL value for the root result id then make it a null result. |
| 177 |
|
if ( ! isset($nonemptyComponents[$dqlAlias]) ) { |
| 178 |
|
$result[] = $this->rsm->isMixed |
| 179 |
|
? [$entityKey => null] |
| 180 |
|
: null; |
| 181 |
|
|
| 182 |
|
$resultKey = $this->resultCounter; |
| 183 |
|
++$this->resultCounter; |
| 184 |
|
|
| 185 |
|
continue; |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
// Check for an existing element |
| 189 |
|
if ($this->isSimpleQuery || ! isset($this->identifierMap[$dqlAlias][$id[$dqlAlias]])) { |
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php 1 location
|
@@ 463-472 (lines=10) @@
|
| 460 |
|
$entityKey = $this->rsm->entityMappings[$dqlAlias] ?: 0; |
| 461 |
|
|
| 462 |
|
// if this row has a NULL value for the root result id then make it a null result. |
| 463 |
|
if ( ! isset($nonemptyComponents[$dqlAlias]) ) { |
| 464 |
|
if ($this->rsm->isMixed) { |
| 465 |
|
$result[] = [$entityKey => null]; |
| 466 |
|
} else { |
| 467 |
|
$result[] = null; |
| 468 |
|
} |
| 469 |
|
$resultKey = $this->resultCounter; |
| 470 |
|
++$this->resultCounter; |
| 471 |
|
continue; |
| 472 |
|
} |
| 473 |
|
|
| 474 |
|
// check for existing result from the iterations before |
| 475 |
|
if ( ! isset($this->identifierMap[$dqlAlias][$id[$dqlAlias]])) { |