[TYPO3-mvc] DataMapper does not respect TYPO3 4.3 default values in TCA
Felix Oertel
post at typo3felix.de
Wed Apr 7 16:04:47 CEST 2010
Hey guys,
Looking at
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.3.0/view/4/2/
-> ['columns'][fieldname]['config'] / TYPE: "select"
we see that the default value for "maxitems" is 1. Anyway not defining
"maxitems" in TCA columns config[*] for fieldtype "select" will produce
an "Could not determine the type"-exception running into
"$columnMap->getTypeOfRelation() ===
Tx_Extbase_Persistence_Mapper_ColumnMap::RELATION_HAS_MANY"
(Classes/Persistence/Mapper/DataMapper.php:325)
If you specify maxitems => 1 everything works fine, so I think it should
work with the default value 1 as well. ;-)
I don't know if this is a FLOW3 problem we are "in sync" with, but I
think it's more an extbase problem since FLOW3 is not bound to the
default values of TYPO3 v4. So where to file the bug?
Regards, foertel
[*] 'config' => array(
'items' => array(array('', 0)),
'type' => 'select',
'foreign_table' => 'tx_foo_model_domain_bar'
)
More information about the TYPO3-project-typo3v4mvc
mailing list