Skip to content

Commit cb000aa

Browse files
author
idcpj
committed
修复样式
1 parent 756a032 commit cb000aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/model/relation/OneToOne.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ public function eagerly(Query $query, string $relation, $field = true, string $j
9090
}
9191

9292
// 预载入封装
93-
$joinTable = $this->query->getTable();
94-
$joinAlias = $relation;
95-
$joinType = $joinType ?: $this->joinType;
93+
$joinTable = $this->query->getTable();
94+
$joinAlias = $relation;
95+
$joinType = $joinType ?: $this->joinType;
9696

9797
$query->via($joinAlias);
9898

@@ -315,8 +315,8 @@ protected function match(string $model, string $relation, Model $result): void
315315
protected function bindAttr(Model $result, Model $model = null): void
316316
{
317317
foreach ($this->bindAttr as $key => $attr) {
318-
$key = is_numeric($key) ? $attr : $key;
319-
$value = $result->getOrigin($key);
318+
$key = is_numeric($key) ? $attr : $key;
319+
$value = $result->getOrigin($key);
320320

321321
if (!is_null($value)) {
322322
throw new Exception('bind attr has exists:' . $key);

0 commit comments

Comments
 (0)