This commit is contained in:
2021-02-25 17:57:20 +08:00
parent e1fa0a6b12
commit fd001e6fbb
13 changed files with 93 additions and 469 deletions
+1 -3
View File
@@ -17,7 +17,6 @@ trait Builder
{
/**
* @param $alias
* @return string
@@ -35,7 +34,7 @@ trait Builder
private function builderFrom($table): string
{
if ($table instanceof ActiveQuery) {
$table = '(' . $table->getBuild()->getQuery($table) . ')';
$table = '(' . SqlBuilder::builder($table)->get($table) . ')';
}
return " FROM " . $table;
}
@@ -111,7 +110,6 @@ trait Builder
}
/**
* @param $where
* @return string