Skip to content

PHP 8.1, Basic JSON type, Auto-transaction start

Choose a tag to compare

@jaydiablo jaydiablo released this 06 Dec 02:47
· 33 commits to master since this release
efb07e1

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, commit or rollback methods on Doctrine_Connection with an argument representing the savepoint identifier) if there is not open transaction when beginTransaction is called, one will be started. If that's the only open transaction when commit is called, the transaction will be committed. Generally this behavior is harmless, but if developers are wrapping Doctrine transactions with their own direct START TRANSACTION outside 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.