lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php 1 location
|
@@ 188-197 (lines=10) @@
|
| 185 |
|
$entityKey = $this->_rsm->entityMappings[$dqlAlias] ?: 0; |
| 186 |
|
|
| 187 |
|
// if this row has a NULL value for the root result id then make it a null result. |
| 188 |
|
if ( ! isset($nonemptyComponents[$dqlAlias]) ) { |
| 189 |
|
$result[] = $this->_rsm->isMixed |
| 190 |
|
? [$entityKey => null] |
| 191 |
|
: null; |
| 192 |
|
|
| 193 |
|
$resultKey = $this->_resultCounter; |
| 194 |
|
++$this->_resultCounter; |
| 195 |
|
|
| 196 |
|
continue; |
| 197 |
|
} |
| 198 |
|
|
| 199 |
|
// Check for an existing element |
| 200 |
|
if ($this->_isSimpleQuery || ! isset($this->_identifierMap[$dqlAlias][$id[$dqlAlias]])) { |
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php 1 location
|
@@ 555-564 (lines=10) @@
|
| 552 |
|
$entityKey = $this->_rsm->entityMappings[$dqlAlias] ?: 0; |
| 553 |
|
|
| 554 |
|
// if this row has a NULL value for the root result id then make it a null result. |
| 555 |
|
if ( ! isset($nonemptyComponents[$dqlAlias]) ) { |
| 556 |
|
if ($this->_rsm->isMixed) { |
| 557 |
|
$result[] = [$entityKey => null]; |
| 558 |
|
} else { |
| 559 |
|
$result[] = null; |
| 560 |
|
} |
| 561 |
|
$resultKey = $this->resultCounter; |
| 562 |
|
++$this->resultCounter; |
| 563 |
|
continue; |
| 564 |
|
} |
| 565 |
|
|
| 566 |
|
// check for existing result from the iterations before |
| 567 |
|
if ( ! isset($this->identifierMap[$dqlAlias][$id[$dqlAlias]])) { |