PHP ORMs: Doctrine vs. Propel -
i'm starting new project symfony readily integrated doctrine , propel, of course need make choice.... wondering if more experienced people out there have general pros and/or cons going either of these two?
thanks lot.
edit: responses, useful stuff. there's no correct answer question i'll mark approved 1 got popular up-votes.
i'd go doctrine. seems me more active project , being default orm symfony better supported (even though officially orms considered equal).
furthermore better way work queries (dql instead of criteria):
<?php // propel $c = new criteria(); $c->add(examplepeer::id, 20); $items = examplepeer::doselectjoinfoobar($c);  // doctrine $items = doctrine_query::create()        ->from('example e')        ->leftjoin('e.foobar')        ->where('e.id = ?', 20)        ->execute(); ?>   (doctrine's implementation more intuitive me).
also, prefer way manage relations in doctrine.
i think page doctrine documentation worth read: http://www.doctrine-project.org/documentation/manual/1_2/en/introduction:doctrine-explained
to sum up: if starting new project or had choose between learning doctrine , propel i'd go doctrine day.
Comments
Post a Comment