[TYPO3-irre] 1:n Relation to the same table

Oliver Hader oh at inpublica.de
Mon Oct 29 16:03:25 CET 2007


Hi Malte,

Malte Jansen schrieb:
> I'm just trying to create a structure like the page-tree or categories
> of the tt_news with IRRE. But when ever I change the config from
> "select" to "inline" it I get a Timeout. I have checked the
> documentation, but there is nothing about a 1:n relation to itself.
> 
> Here is the TCA: (I have tested some other variantes, but nothing
> worked...)
> $TCA["tx_my_table"] = array (
> "columns" => array (
>     "parentuid" => Array (
>         "config" => Array (
>             "type" => "passthrough",
>             "foreign_table" => "tx_my_table"
>         )
>     ),
>     "field1" => Array (
>         "exclude" => 1,
>         "config" => Array (
>             "type" => "inline",
>             "foreign_table" => "tx_my_table",
>             "foreign_field" => "parentuid",
>             "maxitems" => 3,
>         )
>     ),
> ),
> );

Hm, I couldn't find any error here. The symmetrical relations work on in
a 1:n and m:n scenario. What do you mean by "change the config from
'select' to 'inline'"? Where did you get the timeout - on creating
records, on saving or on loading/editing?


olly
-- 
Oliver Hader
http://inpublica.de/


More information about the TYPO3-project-irre mailing list