Skip to content

Commit 4be87c3

Browse files
authored
fix: Resolved bug when related fields were not filled (#550)
1 parent 72ee07e commit 4be87c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Relation/BelongsTo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function shouldPull(Tuple $tuple, Tuple $rTuple): bool
141141
$toReference = [];
142142
foreach ($this->outerKeys as $i => $outerKey) {
143143
if (!\array_key_exists($outerKey, $newData)) {
144-
continue;
144+
return false;
145145
}
146146

147147
$innerKey = $this->innerKeys[$i];

0 commit comments

Comments
 (0)