Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Update:</strong></p> <p>I researched this a little further and it sounds like native support for Doctrine 2 in Zend Framework 2 is still in the works. I recommend keeping an eye on this <a href="https://gist.github.com/1308923" rel="nofollow noreferrer">Github Gist</a> to monitor how the progress is coming along.</p> <p>In the meantime, you might want to check out the repository <a href="https://github.com/mstaessen/zf2-doctrine-provider" rel="nofollow noreferrer">zf2-doctrine-provider</a> from Michiel Staessen. There's no documentation for it yet, but it would be a logical next-step once you're up to speed on how the Bisna library works in ZF 1.x.</p> <p>I'm encouraged to see that most of the discussion around ZF2 native support for Doctrine has been focused on flexibility. It's my hope (and apparently others too) that using Doctrine in Zend Framework won't be an either/or choice but rather an option for building specific portions of a solid and flexible domain model.</p> <p><strong>Original Post:</strong></p> <p>Fortunately most of the main resources for learning ZF 1.x + Doctrine took into account the migration to ZF2. They don't cover native support for Doctrine in ZF2, but they should help you get started with many of the main principles.</p> <p>Zendcasts has an excellent Doctrine 2 tutorial series starting with "<a href="http://www.zendcasts.com/unit-testing-doctrine-2-entities/2011/02/" rel="nofollow noreferrer">Unit Testing Doctrine 2 Entities</a>." Be sure to watch the videos that follow it also, as Jon L. (the presenter) continued to incorporate best practices as he progressed through the videos.</p> <p>Zend Technologies has a definitive webinar titled "<a href="http://www.zend.com/en/webinar/Framework/70170000000bSrG-webinar-zf-v-1-doctrine-v-2-20101214.flv" rel="nofollow noreferrer">Zend Framework v1 + Doctrine v2</a>". The presenters specifically discuss how they structured the sample application to accommodate the ZF2 migration.</p> <p>As for ZF2 native support, I haven't found anything yet either. Rob Allen's well-known <a href="http://akrabat.com/zend-framework/updated-tutorial-for-zend-framework-2-beta-1/" rel="nofollow noreferrer">ZF2 tutorial</a> uses Zend\Db and there's no Doctrine coverage (yet) in Nick Belhomme's "<a href="http://www.packtpub.com/zend-framework-20-cookbook-raw/book" rel="nofollow noreferrer">Zend Framework 2.0 Cookbook</a>."</p> <p>Good luck getting started and please post any good resources you find on ZF2/D2.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload