mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进全局查询范围
This commit is contained in:
@@ -661,9 +661,6 @@ class Relation
|
||||
public function __call($method, $args)
|
||||
{
|
||||
if ($this->query) {
|
||||
$class = new $this->model;
|
||||
// 全局作用域
|
||||
$class->baseQuery($this->query);
|
||||
switch ($this->type) {
|
||||
case self::HAS_MANY:
|
||||
if (isset($this->where)) {
|
||||
|
||||
Reference in New Issue
Block a user