Is it possible to integrate Doctrine 2 with Zend F

2019-06-07 08:02发布

问题:

I'd really like to use and test Doctrine 2 and Zend Framework, but I don't where to start, and I don't know if both are compatible?

Do you have any feedback?

How could I integrate Doctrine 2 with Zend Framework 1.1x?

Thanks in advance.

回答1:

After a long day of search, I found two implementations which of one I liked much because of its documentation and simplicity.

It is part of a Zend Framework extension called Bgy library, there is an Application Resource to help bootstraping both Web application and CLI.



回答2:

There are several resources which will help you get started:

  • Bisna library
  • Cob library
  • 2-part series on integration
  • A Doctrine 2 blog post I wrote myself on fundamentals


回答3:

Have a look at the excellent ZendCast: http://www.zendcasts.com/unit-testing-doctrine-2-entities/2011/02/