This commit is contained in:
2022-09-29 23:06:07 +08:00
parent 76154631e5
commit 77f63a85ed
5 changed files with 23 additions and 23 deletions
+1 -2
View File
@@ -19,8 +19,7 @@ class HasCount extends HasBase
*/
public function get(): array|ModelInterface|null
{
$key = $this->model . '_' . $this->primaryId . '_' . $this->value;
return $this->_relation->count($key);
return $this->_relation->count($this->reKey());
}
}