From ca53d951251a2e31f651e11b420a38d4dc466add Mon Sep 17 00:00:00 2001 From: roxblnfk Date: Tue, 10 Feb 2026 12:17:44 +0400 Subject: [PATCH] fix: Resolved bug when related fields were not filled --- src/Relation/BelongsTo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Relation/BelongsTo.php b/src/Relation/BelongsTo.php index eb6589a2..3ad860e7 100644 --- a/src/Relation/BelongsTo.php +++ b/src/Relation/BelongsTo.php @@ -141,7 +141,7 @@ private function shouldPull(Tuple $tuple, Tuple $rTuple): bool $toReference = []; foreach ($this->outerKeys as $i => $outerKey) { if (!\array_key_exists($outerKey, $newData)) { - continue; + return false; } $innerKey = $this->innerKeys[$i];