Doctrine 2.1 has been released, bringing many major changes to the ORM – some of which are not backwards-compatible with Doctrine 2.0.
Some of the changes that I thought were of particular interest are:
- The use of the Symfony console, which will require some re-configuration in the Doctrine bootstrap script.
- A much more powerful AnnotationReader, which has many new features.
- Read-only entities, which can be created and deleted but not updated. These entities are not considered in the UnitOfWork changeset computations which allows for significant performance optimisations.
- The EntityRepository::findBy() method now accepts orderBy, limit, and offset parameters.
I will be updating my CodeIgniter 2/Doctrine 2 Installation post in the next few days to include Doctrine 2.1.