Skip to content

Commit 6501890

Browse files
committed
Static analysis enforces the extra isset() even though that just masks no sense.
1 parent e399d21 commit 6501890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UnitOfWork.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3252,7 +3252,7 @@ private function eagerLoadCollections(array $collections, array $mapping): void
32523252
foreach ($found as $targetValue) {
32533253
$sourceEntity = $targetProperty->getValue($targetValue);
32543254

3255-
if ($sourceEntity === null) {
3255+
if ($sourceEntity === null && isset($targetClass->associationMappings[$mappedBy]['joinColumns'])) {
32563256
// case where the hydration $targetValue itself has not yet fully completed, for example
32573257
// in case a bi-directional association is being hydrated and deferring eager loading is
32583258
// not possible due to subclassing.

0 commit comments

Comments
 (0)