Skip to end of metadata
Go to start of metadata

This is a page for planning Doctrine integration.

Doctrine 1

Questions

Todo

Doctrine 2

Questions

  • What namespace should we use?
  • Would the doctrine2 classes use 5.3?
  • Replication support? Probably need to ask the Doctrine team about this.
    • What is replication support? Mysql Proxy is the way to go here imho. (beberlei)
      • I agree with beberlei, there are also ways to make use of multiple connections using Doctrine plugins (juozas)
      • Ok, maybe at the end of the process we can provide an example in the docs for this. (kpope)

Todo

  • Update the main Zend_Loader_Autoloader to support both 5.2 and 5.3 style class loading.
  • Update the Zend_Loader_Autoloader_Resource to support namespaces
  • Create a Doctrine 2 Zend Application resource
    • I have a prototype on this, which is quite complete already. I will create a proposal for it.
  • Create a Doctrine2 paginator adapter
  • Create a Doctrine2 auth adapter
  • Create a zend server cache adapter for the \Doctrine\Common\Cache (submit to Doctrine codebase) or support Zend_Cache?
    • Why share a cache instance? I don't see the point, since there are no global methods on caches that require a "singleton" of a cache. (beberlei)
    • Sorry I mean we need a Zend Server adapter for the common lib (kpope)
  • Zend Profiler support?
    • This is a good idea, because it would allow using DC2 with Zend_Wildfire / FirePHP. However the current DC2 Logger only has a subset of features of the Db Profiler. However i might propose to pair this up.
  • Look at the ZF directory structure, do we need to add any folders etc for metadata for instance?
    • This question is also relevant for DC1 regarding the yaml fixture and metadata files.
  • Create Zend_Tool providers for Doctrine2
    • I have a prototype for those already, they are zfproject.xml aware and use the Zend_Application instance and Doctrine2 Resource.
  • Create Zend_Db_Adapters support gateway** Again Why? I think the performance overhead is considerable, wouldn't it be better to contribute new adapters for Doctrine then? (beberlei)
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Nov 17, 2009

    I hacked in cli support this morning: http://giorgiosironi.blogspot.com/2009/11/doctrine-2-and-zend-framework.html
    I guess I can help with the Zend_Tool providers for Doctrine 2 and the application resource if you share the prototypes.

  2. Jan 12, 2010

    I wrote n Adapter for using an existing Zend_Cache instance including prefixing all doctrine-related stuff some time ago:

    http://www.robo47.net/codeschnipsel/32-Adapter-fuer-Doctrine_Cache-zu-Zend_Cache


    Could be extended with support for default-tags which are added to each entry, so finding out all doctrine-related cache-entries would be a lot easier.
    If interessted i can extend my version and write some unittests for it.

    1. Jan 25, 2010

      I definitely think it's worth creating a proposal for.

  3. Feb 28, 2010

    I like it and hope this won't take too long to get it going.

    I just don't like the require calls, as the guideline now is to use autoloading.