The doctrine is much more flexible than Zend (ORM?). You cannot compare these two, because Zend should focus on many aspects within their framework, and Doctrine focuses only on the ORM / DBAL side of their βframeβ. From this approach, the Doctrine will always be one step ahead compared to Zend in ORM.
What I like about Doctrine compared to ZF is that you can write code very quickly and simply and thatβs flexibility. Things like the Doctrine command-line tool to update your schema from your entities, matching with relationships and lazy extraction, working with entities in your DQL (for example, "FROM Entity \ Donation d WHERE d.user =: user" and: user simple a user entity object)
AST, which makes it easy to create custom TreeWalkers to manipulate the DQL and Query structure before converting to SQL, which I use a lot in my own Pike_Grid project.
source share