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
@@ -27,7 +27,6 @@ class HasMany extends HasBase
*/
public function get(): array|Collection|null
{
$key = $this->model . '_' . $this->primaryId . '_' . $this->value;
return $this->_relation->get(md5($key));
return $this->_relation->get($this->reKey());
}
}