update:更新whereLike查询
This commit is contained in:
parent
c74c3c23d4
commit
42ffcb75c7
@ -159,7 +159,11 @@ class CatchQuery extends Query
|
||||
$condition .= '%';
|
||||
}
|
||||
|
||||
return parent::whereLike($this->getAlias() . '.' . $field, $condition, $logic);
|
||||
if (strpos($field, '.') === false) {
|
||||
$field = $this->getAlias() . '.' . $field;
|
||||
}
|
||||
|
||||
return parent::whereLike($field, $condition, $logic);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user