New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR #6200 : Unsupported operand types: string + int #6277
Comments
|
I use knplabs/doctrine-behaviors for entity translation https://github.com/KnpLabs/DoctrineBehaviors/blob/master/docs/translatable.md Example :
In my ProductCrudController
In my TranslationType
I tested without TranslationType with ProductTranslationCrudController and useEntryCrud; i have the same problem. For the moment, I revert PR #6200, I have no error but certainly problem with empty collection first item index. But max(form.children|keys) return a string (the locale fr or en) What do you think to use length in form_theme ? Edit: I saw your new PR with length ^^ I tested and no error |
Check constraint violations for subitems. For example label with length > 255 (or temporary decrease max). BTW, you need to add You also need to add |
Yes it's good. Thanks for |
Hi @zorn-v,
I have problem when updating EasyAdmin 4.9.4 to 4.9.5 or higher.
#6200 Fix empty collection first item index (zorn-v) create this error for me :
The problem appears with TranslatableInterface
In src/Resources/views/crud/form_theme.html.twig (line 140):
'data-num-items': form.children is empty ? 0 : max(form.children|keys) + 1,
generate the errorThe "EntityTranslation" has no ID, just locale and translation.
{{ dump(max(form.children|keys)) }}
returnfr
The text was updated successfully, but these errors were encountered: