PHP 8.1, Basic JSON type, Auto-transaction start
This release is tested against PHP 8.1 with no deprecation notices or test failures.
There were a couple of additions here as well, one of which being the reason for the major version bump:
- Basic JSON column support. It's now possible to specify "json" for the type of a column in the schema, and Doctrine will JSON encode/decode the data for the column automatically.
- When using transaction savepoints in Doctrine (using the
beginTransaction,commitorrollbackmethods onDoctrine_Connectionwith an argument representing the savepoint identifier) if there is not open transaction whenbeginTransactionis called, one will be started. If that's the only open transaction whencommitis called, the transaction will be committed. Generally this behavior is harmless, but if developers are wrapping Doctrine transactions with their own directSTART TRANSACTIONoutside of Doctrine's transaction handling, then Doctrine won't know there is a pending transaction. Because of this behavior change, we decided to make this a major version bump.