From 6f0c51409f757a3353d940de216d9b48e2b8bbac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 23 Nov 2020 14:22:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/Relation.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Database/Relation.php b/Database/Relation.php index acd05134..7a39c0da 100644 --- a/Database/Relation.php +++ b/Database/Relation.php @@ -47,7 +47,7 @@ class Relation extends Component */ public function first(string $identification, $localValue) { - $_identification = $identification . '_count_' . $localValue; + $_identification = $identification . '_first_' . $localValue; if (isset($this->_relations[$_identification]) && $this->_relations[$_identification] !== null) { return $this->_relations[$_identification]; } @@ -69,7 +69,7 @@ class Relation extends Component */ public function count(string $identification, $localValue) { - $_identification = $identification . '_' . $localValue; + $_identification = $identification . '_count_' . $localValue; if (isset($this->_relations[$_identification]) && $this->_relations[$_identification] !== null) { return $this->_relations[$_identification]; } @@ -92,9 +92,9 @@ class Relation extends Component public function get(string $identification, $localValue) { if (is_array($localValue)) { - $_identification = $identification . '_' . implode('_', $localValue); + $_identification = $identification . '_get_' . implode('_', $localValue); } else { - $_identification = $identification . '_' . $localValue; + $_identification = $identification . '_get_' . $localValue; } if (isset($this->_relations[$_identification]) && $this->_relations[$_identification] !== null) { return $this->_relations[$_identification];