Doctrine 2.1 Released

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.

Read Doctrine’s official blog post and What’s New document for more information.

I will be updating my CodeIgniter 2/Doctrine 2 Installation post in the next few days to include Doctrine 2.1.

  • Mike M

    Thanks for the help.

    Working just fine now (2.1). Modifying configs to use the yml drivers are simple. Works like a charm.

  • Mike M

    Ahh, got it, thanks, didn’t see the option to get the package (so obvious now, just click on the link bit to the left of ‘more options’ duh.

    Cool, will give it a go, thanks.

  • Mike M

    Hey man, would really love to see this.

    Been trying to following your original tutorial but am having difficulties. I’m using the git version, which places the ORM in the /lib/ORM directory and the dbal / common stuff in /lib/vendor directory, so it’s a little difficult to follow.

    • http://wildlyinaccurate.com/ Joseph

      Hi Mike, you can get the “Doctrine 2.1.0 Package” from here: http://www.doctrine-project.org/projects/orm/download

      If you want to continue to use the git version, you can either manually copy all of the required directories into your application/libraries/Doctrine, or follow the documentation to configure your Doctrine.php library to work with the git directory setup.