Doctrine 2.5, currently in beta, will drop support for PHP 5.3 and PHP 5.4 will become the minimum requirement enforced with composer. A Total of 21 improvements and new features have been added to the new release in addition to nine behavioral changes including :
- Events: PostLoad now triggered after associations are loaded
- Events: Add API to programatically add event listeners to Entity
- Embeddedable Objects
- Second-Level-Cache
- Criteria API: Support for ManyToMany assocations
- Criteria API: Add new contains() expression
- Criteria API: Support for EXTRA_LAZY
- Mapping: Allow configuring Index flags
- SQLFilter API: Check if a parameter is set
- EXTRA_LAZY Improvements
- Improve efficiency of One-To-Many EAGER
- Better support for EntityManagerInterface
- DQL Improvements
- Custom DQL Functions: Add support for factories
- Query API: WHERE IN Query using a Collection as parameter
- Query API: Add suport for default Query Hints
- ResultSetMappingBuilder: Add support for Single-Table Inheritance
- YAML Mapping: Many-To-Many doesnt require join column definition
- Schema Validator Command: Allow to skip sub-checks
- EntityGenerator Command: Avoid backups
- Support for Objects as Identifiers
- In addition to nine Behavioral Changes (BC Breaks).
Doctrine 2 is an object-relational mapper (ORM) for PHP 5.4+ that provides transparent persistence for PHP objects. It sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a proprietary object-oriented SQL dialect called Doctrine Query Language (DQL), inspired by Hibernates HQL. This provides developers with a powerful alternative to SQL that maintains flexibility without requiring unnecessary code duplication.
More information at http://www.doctrine-project.org/
Github repository : https://github.com/doctrine/doctrine2
More changes details could be found here : What’s new in doctrine 2.5
Indeed, I don’t see any beta tag in https://packagist.org/packages/doctrine/orm, so I have to say that Doctrine 2.5 is currently in alpha.
And let me say: too bad. I think that Doctrine is a really good software and I’d like to use some new features of 2.5 version. I’m also using, in some projects of mine, 2.5@dev.
Indeed, I don’t see any beta tag in https://packagist.org/packages/doctrine/orm, so I have to say that Doctrine 2.5 is currently in alpha.
And let me say: too bad. I think that Doctrine is a really good software and I’d like to use some new features of 2.5 version. I’m also using, in some projects of mine, 2.5@dev.