You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im currently performing an update from Pimcore 10 to 11.
I get following error in the backend:
Message: Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation::setMaxItems(): Argument #1 ($maxItems) must be of type ?int, string given, called in /app/vendor/pimcore/pimcore/models/DataObject/ClassDefinition/Data.php on line 226
Probably there are some values stored wrongly in the database (as string), as the classes were created with Pimcore 10. I'm confused as setMaxItems expects an int value, but getAsIntegerCast allows mixed with a further check.
Pimcore version
11.0.11
Steps to reproduce
Im currently performing an update from Pimcore 10 to 11.
I get following error in the backend:
Message: Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation::setMaxItems(): Argument #1 ($maxItems) must be of type ?int, string given, called in /app/vendor/pimcore/pimcore/models/DataObject/ClassDefinition/Data.php on line 226
Probably there are some values stored wrongly in the database (as string), as the classes were created with Pimcore 10. I'm confused as setMaxItems expects an int value, but getAsIntegerCast allows mixed with a further check.
pimcore/models/DataObject/ClassDefinition/Data/ManyToManyObjectRelation.php
Line 366 in ae5f673
Is it intended to be ?int or should it also be mixed?
This also affects setMaxTabs
The text was updated successfully, but these errors were encountered: