升级到5.1.28版本
This commit is contained in:
1 parent
4bc2bfa35a
commit
81d9f5e5e5
23 files changed
+321
-150
No files matched your search
@@ -158,7 +158,7 @@ abstract class Relation
|
||||
|
||||
$result = call_user_func_array([$this->query->getModel(), $method], $args);
|
||||
|
||||
return $result === $this->query ? $this : $result;
|
||||
return $result === $this->query && !in_array(strtolower($method), ['fetchsql', 'fetchpdo']) ? $this : $result;
|
||||
} else {
|
||||
throw new Exception('method not exists:' . __CLASS__ . '->' . $method);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user