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
|
@@ 479-488 (lines=10) @@
|
| 476 |
|
$entityKey = $this->_rsm->entityMappings[$dqlAlias] ?: 0; |
| 477 |
|
|
| 478 |
|
// if this row has a NULL value for the root result id then make it a null result. |
| 479 |
|
if ( ! isset($nonemptyComponents[$dqlAlias]) ) { |
| 480 |
|
if ($this->_rsm->isMixed) { |
| 481 |
|
$result[] = [$entityKey => null]; |
| 482 |
|
} else { |
| 483 |
|
$result[] = null; |
| 484 |
|
} |
| 485 |
|
$resultKey = $this->resultCounter; |
| 486 |
|
++$this->resultCounter; |
| 487 |
|
continue; |
| 488 |
|
} |
| 489 |
|
|
| 490 |
|
// check for existing result from the iterations before |
| 491 |
|
if ( ! isset($this->identifierMap[$dqlAlias][$id[$dqlAlias]])) { |