mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
Update HasOne.php
This commit is contained in:
@@ -103,7 +103,7 @@ class HasOne extends OneToOne
|
||||
|
||||
return $this->parent->db()->alias($model)
|
||||
->field($fields)
|
||||
->join($table . ' ' . $relation, $model . '.' . $this->localKey . '=' . $relation . '.' . $this->foreignKey, $this->joinType)
|
||||
->join([$table => $relation], $model . '.' . $this->localKey . '=' . $relation . '.' . $this->foreignKey, $this->joinType)
|
||||
->where($where);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user