fix(model): reset query state when database query fails

This commit is contained in:
kj
2026-09-05 16:45:02 -03:00
parent 9cb41d51d0
commit 25db49f4bd

View File

@@ -176,6 +176,10 @@ class Model
$vars = json_encode(static::$dbQueryVariables);
if ($resetQuery) {
static::resetQuery();
}
throw new Exception(
"\nError at query to database.\n" .
"Query: $query\n" .