Some DCA fields have different max length definition in SQL and eval array. This leads for example to cutted text when saving to the database.
@authors in touched PHP filesCurrently the name of tl_metamodel_attribute has no maxlength: https://github.com/MetaModels/core/blob/master/src/CoreBundle/Resources/contao/dca/tl_metamodel_attribute.php#L299 ... maybe it is useful to limit it, as all other name fields have a limitation.
@discordier @zonky2 What about my comment https://github.com/MetaModels/core/pull/1428#issuecomment-708046762 ???
Currently the
nameoftl_metamodel_attributehas no maxlength: https://github.com/MetaModels/core/blob/master/src/CoreBundle/Resources/contao/dca/tl_metamodel_attribute.php#L299 ... maybe it is useful to limit it, as all othernamefields have a limitation.
I am against doing so, as this would break existing installations. An attribute perfectly working before would suddenly become invalid, and further more, get truncated in the table (as the field is currently unlimited text type) when limiting it.
We can do so in 3.0 earliest.
Currently the name of tl_metamodel_attribute has no maxlength: https://github.com/MetaModels/core/blob/master/src/CoreBundle/Resources/contao/dca/tl_metamodel_attribute.php#L299 ... maybe it is useful to limit it, as all other name fields have a limitation.
you can open an separate issue and I set this to MM 3.0 https://github.com/MetaModels/core/milestone/30
I think it is not necessary. For me, it is okay.