This commit is contained in:
2021-03-26 14:21:01 +08:00
parent 88c93787a5
commit ef1c5ffe6c
+11
View File
@@ -155,6 +155,17 @@ class ActiveQuery extends Component implements ISqlBuilder
return $newModel;
}
/**
* @return string
* @throws Exception
*/
public function toSql(): string
{
return $this->builder->get();
}
/**
* @return array|Collection
*/