From 2ace780fcb249261a4f4db79bfb57d396104d94c Mon Sep 17 00:00:00 2001 From: as2252258 Date: Thu, 28 Apr 2022 03:22:53 +0800 Subject: [PATCH] modify mysql result --- Relation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Relation.php b/Relation.php index cee8a27..c249075 100644 --- a/Relation.php +++ b/Relation.php @@ -102,7 +102,7 @@ class Relation extends Component $activeModel = $this->_query[$identification]->get(); if (empty($activeModel)) { - return null; + return $activeModel; } return $this->_relations[$_identification] = $activeModel;