views:

1210

answers:

2

Hi, can anybody help me how to nice integrate doctrine 2.0 into ZF 1.10? I found some application resources, but there was no complete solution. Many thanks

A: 

You're going to find it very difficult (I was going to say no chance, but that's me being a pessimist) - ZF 1.10 is dependent on PHP 5.2, Doctrine 2.0 is written from the ground up for PHP 5.3.

You'd be better off either using Doctrine 1.2, which is working fine with ZF 1.10, or waiting for the upcoming ZF 2.0 release (which may be some time yet).

Stephen Orr
Zend Framework works on both PHP 5.2 and PHP 5.3. Source code does not use namespaces and other PHP 5.3 features, but you may use them in your projects with ZF (e.g. ZF's autoloader should work fine with namespaces).
takeshin
That might be true, but the original poster did not state that he was using PHP 5.3, and my understanding was thus that he was using PHP 5.2 and attempting to integrate something that would just never work. Can't help thinking the downvotes are a bit harsh in that respect.
Stephen Orr
Aren't we this kind who do read manuals, requirements first? Aren't we? Then who does when we do not?!
takeshin
Fair point - I should really have asked for clarification of the user's setup before jumping off the deep end. I've upvoted your response anyway.
Stephen Orr
+3  A: 

You may try to setup it like described in this blog post about ZF & Doctrine 2.

Hope this suits your needs.

takeshin
thanks a lot, but this link links to this thread, can you please paste working link? many thanks!
harvejs
Something get wrong :) I have updated the link.
takeshin