[TYPO3-mvc] DataMapper does not respect TYPO3 4.3 default values in TCA

Jochen Rau jochen.rau at typoplanet.de
Wed Apr 7 17:03:39 CEST 2010


Hi Felix.

On 07.04.10 16:04, Felix Oertel wrote:
> 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?

Yup. That's a bug. Could you please file an issue. I'll fix that for 
Extbase 1.1.0.

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list