变更
This commit is contained in:
+2
-1
@@ -41,6 +41,7 @@ class HasOne extends HasBase
|
||||
*/
|
||||
public function get(): array|ModelInterface|null
|
||||
{
|
||||
return $this->_relation->first($this->model::className(), $this->value);
|
||||
$key = $this->model::className() . '_' . $this->primaryId . '_' . $this->value;
|
||||
return $this->_relation->first($key);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user