[TYPO3-ect] Spring and Symfony
Nikolas Hagelstein
hagelstein at shr.cc
Thu Oct 4 10:47:56 CEST 2007
Hi,
Elmar Hinz wrote:
> Different approaches are possible. We could use DAOs, that
> dynamically use the TCA configuration instead of hardcoding all
> setters, wich is more flexible than scaffolding.
Regarding the model: I thought about some TCA base DAO autogeneration a
while ago.
These are some things that came to my mind:
TCA does not needfully consists of all field the related table consists of.
(not a big issue)
TCA does not descripes relations between objects. Though there are thoose
foreigntable settings but they are not usefull for autogenerating
table/object relations.
TCA can be used to autogenerate a l18n query. (l18n_exclude etc). This would
enable us to get rid of t3lib_pageSelect.getRecordOverlay which would result
in a significant higher performance.
Though i havent implemented some kind of TCA DOA i think the best way is to
use a combination of TCA and relation specification for autogeneration.
I know there are a lot of people out there who dont like autogeneration but
i think it should be at least avaible as an option.
I personally like the cake approach:
See:
http://manual.cakephp.org/chapter/models and
http://api.cakephp.org/class_model.html
I thing a combination of TCA parsing and a cake like approach could be a
passable solution.
Bye,
Nikolas
More information about the TYPO3-team-extension-coordination
mailing list