[TYPO3-mvc] Database structure when using ExtBase

Jochen Rau jochen.rau at typoplanet.de
Wed May 27 13:32:40 CEST 2009


On 2009-05-27 13:20:05 +0200, Sebastian Gebhard 
<s.gebhard at markenmotiv.de> said:

> Jochen Rau schrieb:
>>> 2. Are bidirectional relationships needed/recommended?
>> 
>> It depends on the use case. Don't implement bidirectional navigation if 
>> you don't need it.
>> 
>>> 3. Why does blog_table exist?
>> 
>> It's for compatibility reasons.
> 
> When I implement a 1:n relationship in my extension now, it's ok to use 
> one field?

Yes.

> Am I still free to choose what table holds the relation? That means I 
> can choose if my items table has a category field or my categories 
> table has a comma separated items field.

Extbase only supports 1:n relations with foreign keys. Maybe we will 
break this rule for legacy TYPO3 tables like fe_users. But comma 
separated lists are a very bad style for storing relations.

Regards
Jochen

-- 
"Every nit picked is a bug fixed"



More information about the TYPO3-project-typo3v4mvc mailing list