From f8b4147202d6b9d996c660dc2fec1cd0c1fd3472 Mon Sep 17 00:00:00 2001 From: Yohanes Candrajaya Date: Wed, 4 Oct 2017 13:15:39 +0700 Subject: [PATCH] fixes #47 --- RelationTrait.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RelationTrait.php b/RelationTrait.php index 1ec5f08..4652d38 100644 --- a/RelationTrait.php +++ b/RelationTrait.php @@ -71,7 +71,7 @@ public function loadAll($POST, $skippedRelations = []) continue; } - return $this->loadToRelation($isHasMany, $relName, $relAttr); + $this->loadToRelation($isHasMany, $relName, $relAttr); } } } else { @@ -81,10 +81,11 @@ public function loadAll($POST, $skippedRelations = []) continue; } - return $this->loadToRelation($isHasMany, $relName, $attr); + $this->loadToRelation($isHasMany, $relName, $attr); } } } + return true; } return false; }