This commit is contained in:
2021-03-26 15:26:55 +08:00
parent 1bc39a0315
commit b9f6c05a57
+1 -1
View File
@@ -41,7 +41,7 @@ trait Builder
private function builderFrom($table): string private function builderFrom($table): string
{ {
if ($table instanceof ActiveQuery) { if ($table instanceof ActiveQuery) {
$table = '(' . SqlBuilder::builder($table)->get($table) . ')'; $table = '(' . $table->toSql() . ')';
} }
return " FROM " . $table; return " FROM " . $table;
} }