Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Dec 31, 2021
1 parent 8861b60 commit e69151f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,12 @@ public function __construct(array $data = [])
}

// 预载入查询
if (empty($optios['is_resultSet']) && !empty($options['with'])) {
if (empty($options['is_resultSet']) && !empty($options['with'])) {
$result->eagerlyResult($result, $options['with'], $options['with_relation_attr'], false, $options['with_cache'] ?? false);
}

// JOIN预载入查询
if (empty($optios['is_resultSet']) && !empty($options['with_join'])) {
if (empty($options['is_resultSet']) && !empty($options['with_join'])) {
$result->eagerlyResult($result, $options['with_join'], $options['with_relation_attr'], true, $options['with_cache'] ?? false);
}

Expand Down

0 comments on commit e69151f

Please sign in to comment.