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
|
@@ 537-546 (lines=10) @@
|
| 534 |
|
$entityKey = $this->_rsm->entityMappings[$dqlAlias] ?: 0; |
| 535 |
|
|
| 536 |
|
// if this row has a NULL value for the root result id then make it a null result. |
| 537 |
|
if ( ! isset($nonemptyComponents[$dqlAlias]) ) { |
| 538 |
|
if ($this->_rsm->isMixed) { |
| 539 |
|
$result[] = [$entityKey => null]; |
| 540 |
|
} else { |
| 541 |
|
$result[] = null; |
| 542 |
|
} |
| 543 |
|
$resultKey = $this->resultCounter; |
| 544 |
|
++$this->resultCounter; |
| 545 |
|
continue; |
| 546 |
|
} |
| 547 |
|
|
| 548 |
|
// check for existing result from the iterations before |
| 549 |
|
if ( ! isset($this->identifierMap[$dqlAlias][$id[$dqlAlias]])) { |