[TYPO3-mvc] Property / relation problem

Alexander Dick typo3 at dick.at
Fri Feb 3 14:03:49 CET 2012


Am 03.02.2012 13:52, schrieb Claus Due:
>> I tried to set it manually and it works!
>
> Ok, nice - let's inspect the TCA and DB then.
>
>> 'country' =>  array(
>> 	'exclude' =>  0,
>> 	'label' =>  'Country',
>> 	'config' =>  array(
>> 		'type' =>  'select',
>> 		'size' =>  1,
>> 		'items' =>  array(
>> 			array('', 0),
>> 		),
>> 		'foreign_table' =>  'tx_xxx_domain_model_staticcountry',
>> 		'maxitems' =>  1
>> 	),
>> ),
>
> Looks fine for a 1:1 relation. Check:
>
> - is the field added in SQL, type integer?
> - is the field available in "showitem" in the TCA types section?
> - can you through the BE select the country for one of your users?

1) Yeap - int(11) in the DB
2) yes, it's also shown in the backend and listed in showitem
3) in order to have the field in the backend working, I have to change 
the foreign_table to static_countries (because 
tx_xxx_domain_model_staticcountry is only a dummy table and thus empty).

>
>> Unfortunately there is no manual, it's only the manual template..
>
> Damn. People should learn to always document their work.
>
> Cheers,
> Claus



More information about the TYPO3-project-typo3v4mvc mailing list