What's new in Doctrine 1.2

Tags: update, 1.2, new

Posted about 1 year ago by jwage

This week I have been working on the next major version of Doctrine, 1.2. This version will possibly be the last 1.x version before we really begin to push 2.0 hard.

The 1.2 release should be a decent release for you all and I think it has some interesting features that should really spark some growth in the community around Doctrine. Here are some highlights.

Highlights

  • Major cleanup, removing deprecated methods, removed accessor string support for performance fix
  • Option to disable cascading saves by default for performance improvement
  • Changes to migrations to better handle migrating multiple databases
  • More configuration options
  • Configure a child Doctrine_Query class to use
  • Configure a child Doctrine_Collection class to use
  • Refactored hydration implementation to be completely driver based
  • Write your own hydration drivers to process query statements
  • Refactored Doctrine connections to be completely driver based
  • Write your own connection drivers for Doctrine
  • Other small changes and improvements across the code base

Doctrine Extensions

All the above changes lend themselves well to creating extensions and behaviors for Doctrine. This has led to the creation of the Doctrine extensions repository.

You can now write standalone code bundled as a Doctrine extension that can be dropped in to an extensions folder and loaded by Doctrine. So now when you all write custom behaviors and custom extensions you can make them available for other people to use and drop in to projects.

I have started the repository by committing the Sortable behavior which was contributed by a Doctrine user on our trac. So whoever you are, if you would like to maintain this extension please contact me.

Follow 1.2 Development

If you want to know more about Doctrine 1.2 you can read the What's new in Doctrine 1.2 document which will be kept up to date as we develop and change things in 1.2!

Some of the implemented features in 1.2 are still being discussed and debated so they may change or be completely removed if decided so. If you have any input or suggestions on the provided features, let us know ASAP.


Comments (7) [ add comment ]

Everything seems great Posted by JoaquĆ­n Bravo Contreras about about 1 year ago.

Loving all the work being put to this project. Doctrine 1.2 sounds great!

repository for extensions Posted by AmdY about about 1 year ago.

Creation repository for extensions this is a wonderful idea? but why $manager->registerExtension('Sortable') is Doctrine_Template_Sortable ? i like $manager->registerExtension('User_Doctine_Template_Sortable')

@amdy Posted by jwage about about 1 year ago.

The argument is the extension name, not the class name or anything. This means inside the extensions directory you must have the Sortable directory with the Doctrine extension inside it.

Documentation Posted by Lars Olesen about about 1 year ago.

Looks really neat. Where can I find information as to how extensions for Doctrine are written and published?

@lars olsen Posted by jwage about about 1 year ago.

I haven't written much yet, but basically an extension is no different then if the code were in the core of Doctrine. It should follow the same naming patterns and everything. The only difference is that each extensions code can be bundled separately.

extension directory? Posted by thomas about about 1 month ago.

Seems that extension repositiry has disapeared with new version of the website. Nowhere to be found.

upgrade page not available Posted by jackbravo about 22 days ago.

Hi, I just want to point out that the upgrade page

http://www.doctrine-project.org/upgrade/1_2

is no longer available on this website.

Create Comment