Which PHP ORM works best with the Zend Framework?

Well, seeing that I am not happy with Zend_Db_Table after LINQ has been corrupted , I want to start learning ORM with PHP. The general consensus seems to be that Doctrine and Propel are the only good for serious use - and, regardless of my opinion, I would like to use something at least moderately popular so that people in the future can look at this application that I am working on without bang head: P

I am currently leaning towards Propel because this documentation looks a bit more complete and it supports a nested dialing model (also called a β€œmodified cross-model pre-order model”) right out of the box. However, I like the use of Doctrine namespaces and other PHP 5.3 features, and it seems a bit more popular.

From those who used ORM with the Zend Framework, which is better attached to the existing structure (if any)? What problems should I follow to use the framework with Zend?

+8
php orm zend-framework
source share
2 answers

I cannot speak for Propel, but there are many good integration resources for ZF and Doctrine. See Zend Framework 1.11 with Doctrine 2 Integration

+10
source share

Well Doctrine 1.2 supports the Nested Set ... much better than propel in <1.3. I have not used propel 1.4 / 5, so I can not comment on its current state. I also did not use Doctrine 2 ... ive adhered to 1.2, since the mot of my projects does not use php 5.3 ...

In general, I liked Propel better ... I prefer the generated classes to those that are dynamically tuned at runtime. Also keep me in mind. Propel is an active recording implementation, while Doctrine 2 uses the Data Mapper template.

+1
source share

All Articles