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