This commit is contained in:
2022-09-29 18:54:14 +08:00
parent fc828df683
commit 02eddb98a2
+1 -1
View File
@@ -60,7 +60,7 @@ abstract class HasBase implements \Database\Traits\Relation
$_model = $model::query()->where(['t1.' . $primaryId => $value]); $_model = $model::query()->where(['t1.' . $primaryId => $value]);
} }
$this->_relation = $relation->bindIdentification($model, $_model); $this->_relation = $relation->bindIdentification($model . '_' . $primaryId . '_' . $value, $_model);
$this->model = $model; $this->model = $model;
$this->value = $value; $this->value = $value;