• 9

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I have only started discovering Doctrine and noticed the official documentation points to 1.2 as this seems to be the current stable version.

I also noticed that a lot of people seem to mention Doctrine 2 is a "world of difference" compared to Doctrine 1, but when looking at the What's new page, I don't really see an extensive changelog. I am guessing this list only shows the newest additions compared to the previous 2.x build. I expected to find a nice roundup of differences after Googling this same question, but I can not seem it.

I am currently plowing through the Doctrine 1 manual, and will do the same for Doctrine 2 as soon as I finish reading it, but a proper overview of the big changes would be really appreciated, so my question is:

What are the differences between Doctrine1 and Doctrine2?

Well... Doctrine1 and Doctrine2 are totally incomparable as they realize completely different approaches.

  1. Doctrine1 implements ActiveRecord design while D2 implements DataMapper design - that's the most important difference.
  2. D2 requires PHP 5.3 or newer and uses its benefits like namespaces.
  3. D2 is divided into set of smaller subprojects: Doctrine Commons, Doctrine DBAL, Doctrine ORM (for RDBMS) and Doctrine ODM (for MongoDB).
  4. D2 is much faster.
  5. D2 supports annotations.

Although D2 isn't still stable it's the future so don't waste time for learning D1.

  • 11
Reply Report
    • I'll second beberlei in that D2 is stable. No issues for me, and I've been using since the Beta versions. Fantastic product and if you do have issues support is easy to come by.

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags

Related Questions