I have never used any ORM, but the Zend_Db_Table (if you can call it one). I'd like give it a try with some famous ROM and 开发者_开发知识库I've only heard of these 2 (Propel and Doctrine).
I tried sometimes in the past but I found it too hard to integrate or maybe I didn't understand how it works.
Now that I'm trying again, I'd like to know which one has easier integration with Zend Framework and which one is easier to work and why
Doctrine and Propel are definitely the two best know PHP ORM's among some others.
Doctrine has definitely seen some more love from ZF and there is rumors that Doctrine 2 will play a major role in ZF2, though afaik nothing as been confirmed as of this writing.
Here is some links for you to follow:
- Integrating Propel with the Zend Framework (2006)
- Brandon Savage: The Adventures Of Merging Propel With Zend Framework
and
- Ruben Vermeersch: Integrating Zend Framework and Doctrine 1.x
- Matthew Weier O'Phinney: Autoloading Doctrine and Doctrine entities from Zend Framework
- Doctrine 2 and Zend Framework first date
Also see these two questions that have additional information and links:
- Zend Framework 1.9 and Doctrine Integration
- Integrate Doctrine with Zend Framework 1.8 app
Should not be hard to find many more for Doctrine.
EDIT very nice one from Phil's comment:
- Zend Framework / Doctrine integration suite
精彩评论