[TYPO3-ect] ORM for lib/div
Alexey Boriskin
sun.void at gmail.com
Tue Aug 14 20:44:51 CEST 2007
Hello.
As mentioned in some posts in this list, there is a need in an ORM tool
for lib/div.
Some comparison was done at [1], but this page was not changed for a
half year.
For now, we have some options:
1) use TCAObjects of WEC [2]
2) use some widely used PHP ORM [3]. Most popular ORMs are:
a) Propel [4]
b) EZPDO [5]
c) Doctrine [6]
3) other, self-made tool.
I looked at TCAObjects, Propel, EZPDO and Doctrine.
TCAObjects was not updated for a long time. It is small and not very
powerful. I used it in one of my projects and had to change some code.
It is still "raw".
EZPDO is similar to Hibernate and use syntax like @orm int(64).
Propel generates classes from data scheme XML.
Doctrine generates classes from existing database or another source
(Propel's XML is supported). Also there is a possibility to write our
own import class for generating classes from TCA. (But it's also complex
task cause TCA structure is complex).
Personally, I would prefer Doctrine. But it may be too overhead:
Doctrine contains 277 files now, which total size is 1.5 MB.
Also, I am curious about Robert Lemke's decision about ORM for 5.0.
Regards, Alexey.
[1]http://wiki.typo3.org/index.php/Object_Persistence_Framework
[2]http://svn.webempoweredchurch.org/misc/browser/trunk/tcaobj
[3]http://en.wikipedia.org/wiki/List_of_object-relational_mapping_software#PHP
[4]http://propel.phpdb.org/
[5]http://ezpdo.net/
[6]http://www.phpdoctrine.org/
More information about the TYPO3-team-extension-coordination
mailing list