public function __destruct() { ModelAbstract::$instances--; if (ModelAbstract::$instances > 0) { return false; } if (empty(ModelAbstract::$queryHistory)) { return false; } if (ModelAbstract::$hasError && DEBUG === TRUE || SHOW_SQL_QUERIES === true) { echo ModelAbstract::dumpQueries() . "<br><br>"; ModelAbstract::$queryHistory = null; } }