Version 9 by Matt L
on Nov 08, 2009 04:38.

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (24)

View Page History
h1. Doctrine 1


h2. Questions

* What minor version number of Doctrine 1.x should we support? (kpope)
* What namespace should we use?
** Right now I think about something like Zend_(orm\|model)_Doctrine, to make it possible for future orm's (juozas)
* How should we modify Record/Table generation tasks in the light of ZF Modular Structures
** Configurable via Metadata?
*** Models can be generated to Model_Class, Model_Base_Class and Model_ClassTable so autoloading shoudln't be a problem (juozas)
**** How does would this look like for ModuleA_Model_Class, ModuleB_Model_Class? How could one configure which class is for which module? (beberlei)
** I'm not aware of any way to generate modular models using Doctrine 1.1, This may be possible with 1.2. See http://www.doctrine-project.org/upgrade/1_2#PEAR%20Style%20Model%20Loading%20and%20Generation, http://groups.google.com/group/doctrine-user/browse_thread/thread/a6f4751b9a8e47dc# [http://www.doctrine-project.org/upgrade/1_2#PEAR%20Style%20Model%20Loading%20and%20Generation], [http://groups.google.com/group/doctrine-user/browse_thread/thread/a6f4751b9a8e47dc#] and [http://groups.google.com/group/doctrine-user/browse_thread/thread/3fe6f7745d472a46] (mlurz71)

h2. Todo

* Create a Doctrine 1 Zend Application resource (mlurz71)
** [http://framework.zend.com/wiki/display/ZFPROP/Zend_Application_Resource_Doctrine+-+Matthew+Lurz] already exists
* Create a Doctrine 2 Zend Application resource
** I have code for this, though it should make use of application.ini config to set it's properties (juozas)
* Create a Doctrine1 paginator adapter
** Juozas could contribute his.
*** current code [http://pastebin.com/f39a326dd] (juozas)
** [http://framework.zend.com/wiki/display/ZFPROP/Zend_Paginator_Adapter_Doctrine+-+Jason+Eisenmenger] already exists (mlurz71)
* Create a Doctrine1 auth adapter
** [http://www.framework.zend.com/svn/framework/extras/incubator/library/ZendX/Doctrine/Auth/Adapter.php] exists already, only docs and tests missing.
* Create Zend_Tool providers for Doctrine 1
** Should be zfproject.xml aware and use the Doctrine 1 resource to "bootstrap" the ZF + Doctrine enviroment
** Should implement all the tasks that the Doctrine CLI has.
* Create Zend_Db_Adapters support gateway
* -Create Zend_Db_Adapters support gateway-** Why? I think the performance overhead is considerable, wouldn't it be better to contribute new adapters for Doctrine then? (beberlei)
*** What do you mean by performance overhead? I haven't tried it, but the fact that Doctrine now is very much PDO oriented (correct my if I'm wrong) makes me believe that it would be easier to make some sort of bridge than to recode drivers for Doctrine. I should play with this (juozas)
**** I think the problem is rather that Doctrine requires much more than the PDO/PDOStatement like API but also the Export/Import Requirements for DDL SQL Statements, which might not be correct for the currently unsupported/semi-supported platforms.
***** I guess I've missed this point, you are right (juozas)
* Create a Log Writer component (mlurz71)
** [http://framework.zend.com/wiki/display/ZFPROP/Zend_Log_Writer_Doctrine+-+Matthew+Lurz] already exists
* Create a Session SaveHandler component (mlurz71)
** [http://framework.zend.com/wiki/display/ZFPROP/Zend_Session_SaveHandler_Doctrine+-+Matthew+Lurz] already exists

h1. Doctrine 2


h2. Questions

* What namespace should we use?

* Would the doctrine2 classes use 5.3?
** Doctrine 2 requires 5.3+. See [http://www.doctrine-project.org/documentation/manual/2_0/en/introduction] (mlurz71)
** Just to clarify I meant do we use 5.3 or 5.2 to create the ZF doctrine 2 components. (kpope)
* 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)

h2. 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 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.
* 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
* -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)