Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e137f7

Browse files
authored
Merge pull request #10704 from greg0ire/drop-useless-block
Remove unreachable piece of code
2 parents 255ce51 + a33aa15 commit 4e137f7

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,6 @@ protected function hydrateRowData(array $row, array &$result)
458458
$targetClass->reflFields[$inverseAssoc['fieldName']]->setValue($element, $parentObject);
459459
$this->_uow->setOriginalEntityProperty(spl_object_id($element), $inverseAssoc['fieldName'], $parentObject);
460460
}
461-
} elseif ($parentClass === $targetClass && $relation['mappedBy']) {
462-
// Special case: bi-directional self-referencing one-one on the same class
463-
$targetClass->reflFields[$relationField]->setValue($element, $parentObject);
464461
}
465462
} else {
466463
// For sure bidirectional, as there is no inverse side in unidirectional mappings

psalm-baseline.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,6 @@
485485
<code>getValue</code>
486486
<code>setValue</code>
487487
<code>setValue</code>
488-
<code>setValue</code>
489488
</PossiblyNullReference>
490489
<PossiblyUndefinedArrayOffset>
491490
<code><![CDATA[$class->associationMappings[$class->identifier[0]]['joinColumns']]]></code>

0 commit comments

Comments
 (0)