This commit is contained in:
2021-09-28 18:54:07 +08:00
parent 27e87a461e
commit 079cd12399
18 changed files with 659 additions and 678 deletions
+2 -2
View File
@@ -140,7 +140,7 @@ class SqlBuilder extends Component
*/
public function delete(): string
{
$delete = sprintf('DELETE FROM %s ', $this->query->modelClass::getTable());
$delete = sprintf('DELETE FROM %s ', $this->query->modelClass->getTable());
$this->query->from = null;
@@ -361,7 +361,7 @@ class SqlBuilder extends Component
$this->query->from = sprintf('%s', SqlBuilder::builder($this->query->from)->get($this->query->from));
}
if (empty($this->query->from)) {
return $this->query->modelClass::getTable();
return $this->query->modelClass->getTable();
}
return $this->query->from;
}