修正Query类

This commit is contained in:
thinkphp
2017-04-17 08:54:40 +08:00
parent 8dc793d76c
commit 9ea7f48e1a

View File

@@ -1999,7 +1999,7 @@ class Query
$relation = explode(',', $relation);
}
if (isset($this->options['relation'])) {
$this->options['relation'] = array_mrege($this->options['relation'], $relation);
$this->options['relation'] = array_merge($this->options['relation'], $relation);
} else {
$this->options['relation'] = $relation;
}