Skip to content

Commit

Permalink
模型关联改进对模型修改器支持
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Aug 20, 2023
1 parent b723ee2 commit d119171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/concern/RelationShip.php
Expand Up @@ -180,7 +180,7 @@ public function relationQuery(array $relations, array $withRelationAttr = []): v
$relationResult->withAttr($withRelationAttr[$relationName]);
}

$this->relation[$relation] = $relationResult->getRelation((array) $subRelation, $closure);
$this->setRelation($relation, $relationResult->getRelation((array) $subRelation, $closure));
}
}

Expand Down

0 comments on commit d119171

Please sign in to comment.