mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
fix bug: when use a subquery
This commit is contained in:
@ -748,7 +748,7 @@ PATTERN;
|
||||
*/
|
||||
public function from($tables)
|
||||
{
|
||||
if ($tables instanceof Expression) {
|
||||
if ($tables instanceof ExpressionInterface) {
|
||||
$tables = [$tables];
|
||||
}
|
||||
if (is_string($tables)) {
|
||||
|
||||
Reference in New Issue
Block a user