[TYPO3-dev] Extbase relation to tt_content - TCA overwritten
Gianluca Strafella
gianluca.strafella at webformat.com
Fri Sep 20 09:03:40 CEST 2013
Hi Dirk,
this seem be caused by some code in the file ext_tables.php (after you
save extention by extention builder), can you post this file ?
Gianluca Strafella
Software Developer
gianluca.strafella at webformat.com
Tel. +39-0427-926.389
WEBFORMAT srl – www.webformat.com
Via S. Francesco d'Assisi, 6 – 20122 MILANO
Corte Europa, 12 - 33097 SPILIMBERGO (PN)
Il 14/09/2013 22:52, Dirk Wenzel ha scritto:
> Hi,
> I'm building an extension where a model should have an m:n relation to
> tt_content records.
>
> When setting up this relation in extension builder the TCA for
> tt_content is overwritten. Content elements can not be edited in BE
> anymore since the edit window is empty. Also the wizard for creating
> content elements doesn't show the icon for tt_content anymore. Instead
> there is the standard icon for extbase entities without a label.
>
>
> I followed the instructions under [1]. The above case is mentioned
> there. But I don't understand how to avoid it. (see below for details)
>
> Thanks in advance
> Dirk
>
> Model:
>
> ==========
> Option
> Object Type: entity
> Is Aggregat Root: yes
> Enable Sorting: yes
> ==========
> Properties
> [...]
> ==========
> Relations
> ========= Name: ContentElements
> TtContent---------------Type: m:n
> Object Type: entity ==========
> Is Aggregat Root: yes
> Enable Sorting: yes
> =========
> Properties
> -Points
> =========
>
> Generated ext_typoscript_setup.txt:
> config.tx_extbase{
> persistence{
> classes{
>
> webfox\T3rating\Domain\Model\TtContent {
> mapping {
> tableName = tt_content
> recordType = Tx_T3rating_TtContent
> }
> }
>
> }
> }
> }
>
> Generated [...]TCA/TtContent.php: empty
>
> [1]
> http://wiki.typo3.org/T3Doc/Extension_Builder/Mapping_to_tables_and_extending_classes
>
More information about the TYPO3-dev
mailing list