I am looking for a good ORM (i.e. Active Record) which use php extension PDO as base.Any suggestions?
7 Answers
3 Comments
I haven't used Doctrine or Propel. Propel looks straightforward and very nice (might have to give it a try) .. Doctrine seems to have a lot more to it than just ActiveRecord ORM. I'm a big fan of phpactiverecord (http://www.phpactiverecord.org/). It's simple, makes sense, and built for MVC architecture. I had used CodeIgniter's ActiveRecord in the past, this is similar: all php, very easy to setup a new connection, I particularly like the Dynamic finders, basically lets you put the field of the "WHERE" in the function instead of having to give an associative array. Propel might have this too, ex:
$book = Book::find_by_title('War and Peace'); versus:
$book = Book:find('all', array('conditions' => "title = 'War and Peace'")); Comments
Comments
- Doctrine (optionally with Symfony) - http://symfony.com/
- Propel (optionally with Symfony) - - http://propelorm.org/
- Zend_db (optionally with zend) - http://zend.com/
- CakePHP Using commonly known design patterns like MVC and ORM - - http://cakephp.org/
And for more ORM http://en.wikipedia.org/wiki/List_of_object-relational_mapping_software