Upgrading

Upgrading to Version 3.2

The minimum required PHP version is 8.1.

The code has been carefully tuned for PHP 8.1. All new type hints for methods and properties have been added. The changes are minor:

  • MySQL: zero date 0000-00-00 is returned as null
  • MySQL: decimal without decimal places is returned as int instead of float
  • The time type is returned as a DateTime object with the date set to 0001-01-01 instead of the current date

Upgrading to Version 3.1

  • the class Nette\Database\Context was renamed to Nette\Database\Explorer for consistency with the name Database Explorer
  • the interfaces Nette\Database\IRow and Nette\Database\IRowContainer are marked as deprecated as unnecessary
  • the MySqlDriver driver uses subqueries
  • the SQL statement translator better controls where arrays can be passed

Upgrading to Version 3.0

Some methods, such as fetch() or fetchField(), now return null instead of false when there is no next row.

Upgrading to Version 2.3

  • the MySqlDriver uses utf8mb4 encoding by default for MySQL >= 5.5.3 instead of utf8
  • IReflection was split into the twin interfaces IStructure and IConventions