[TYPO3-extbase-kickstarter] Extend existing model class does not result in prefixed table column names

Toke Herkild th at t3cms.dk
Mon Dec 3 14:21:03 CET 2012


Den 14-11-2012 16:24, Thomas Fricke skrev:
> Hi,
>
> this confuses me now a bit. If i, let's say, create an extension
> handling some frontend user data, plus adding some properties to the
> user - ain't it best practice to extend the fe_users table? Or are there
> other methods of extending an existing fe_user-model, without changing
> the table itself?
>
>
> Am 14.11.2012 14:52, schrieb Christian Müller:
>> On 13/11/12 22:07, Roland wrote:
>>>  as far as i can remember EXT:kickstarter prefixed column names to
>>> avoid naming collisions. why doesn't EXT:extension_builder prefix the
>>> names?
>>>
>> Because in a (ideal) Extbase world you would have the properties in
>> your model, so you wouldn't create two properties with the same name
>> anyway.
>>
>> Christian
>>
>>
>> _______________________________________________
>> TYPO3-project-extbase-kickstarter mailing list
>> TYPO3-project-extbase-kickstarter at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-extbase-kickstarter
>>
>

Hi Thomas,

If you extend an existing table, then the fields you add to this 
table/model will be named as following in the DB:
tx_yourmodel_yourfieldname

Regards,
Toke



More information about the TYPO3-project-extbase-kickstarter mailing list