Doctrine 2 BETA 1がリリース

Today we are pleased to announce the immediate release of the first beta version of Doctrine 2

http://www.doctrine-project.org/blog/doctrine-2-0-0-beta1-released

GitHub - doctrine/orm: Doctrine Object Relational Mapper (ORM)

Doctrine 2のBETA版がやっとリリースされましたね。当初の予定だと3月くらいにはリリースする予定でしたが、GitHubへの移行と、CLI関連の機能をSymfony\Components\Consoleを利用するように変更したことで送れたそうです。

We had to confront the alpha users with quite some backwards compatibility problems and we apologize for that. Starting with the beta period you can expect the amount of backwards incompatible changes to be much lower.

http://www.doctrine-project.org/blog/doctrine-2-0-0-beta1-released

非互換な修正はそんなたいしたことないっていってますが、そもそも後方互換を気にしてたらD2でやっていけないと思うんですよね・・・。レコードに関してはActiveEntityがあるので従来のものに近い感覚で扱るかと思いますが、クエリ周りは結構勝手が違うように思います。

BETA1での変更として、S\C\Consoleを使うようにしたのと、双方向のリレーションを定義する際に用いるinversedByとかいうのが実装されたことのようです。

今後の展望として、少なくとも2〜3回はベータリリースを行うようです。2,3ヶ月はベータ期間で、その後にRC版を、その後APIが完全に固まったら正式リリースという流田だそうです。そう遠くないかもしれませんね。

Doctrineとドキュメント指向データベース

Doctrine 2 ORM will never have support for MongoDB or anything like it. ORM is for relational databases. However we may have a DDAL and ODM

Jonathan H. Wage on Twitter: "Doctrine 2 ORM will never have support for MongoDB or anything like it. ORM is for relational databases. However we may have a DDAL and ODM"

DDAL = Document Database Abstraction Layer and ODM = Object Document Mapper (Doctrine\DDAL and Doctrine\ODM)

Jonathan H. Wage on Twitter: "DDAL = Document Database Abstraction Layer and ODM = Object Document Mapper (Doctrine\DDAL and Doctrine\ODM)"

現状のDoctrine 2にはCommon, DBAL, ORMという3つのサブパッケージがあります。DBALとORMについてはRDBMSをサポートするためのものなので、このパッケージがドキュメント指向データベースに対応することはありませんが、ドキュメント指向データベースのためのDDALとODMというパッケージが作られるかもということです。あるとうれしいですよね。Not only SQL!