Skip to content

v2.2.0

Compare
Choose a tag to compare
@fprochazka fprochazka released this 23 Dec 22:21
· 371 commits to master since this release
  • [Soft BC Break] Minimum dependency on doctrine/dbal 2.5 which means new DBAL\Connection exceptions

New property Connection::$throwOldKdybyExceptions was introduced, that enables the old behaviour of exceptions on Kdyby\Doctrine\Connection.
The new DBAL has much better exception resolution and throws specific exceptions, making the old behaviour obsolete.

The old behaviour is by default turned off, so you're pushed to migrating, but you can still turn it on.

services:
    doctrine.default.connection:
        setup:
            - $throwOldKdybyExceptions(TRUE)

This property and related deprecated exceptions will be removed no later than with release of Doctrine\DBAL 2.6

  • Fixed identifier quoting on shortcut methods insert/update/delete #64
  • Dropped custom Connection::ping() (completely compatible native one is used)
  • Implemented Persistence\ManagerRegistry #140
  • ClassMetadataFactory fix: add entity alias (which defined in targetEntityMappings) to the metadata map, thanks to @matej21
  • Added ResultSet::toArray() shortcut

This release is for Nette 2.2.*