[TYPO3-mvc] Property / relation problem

Claus Due claus at wildside.dk
Fri Feb 3 13:52:38 CET 2012


> 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?

> 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