Skip to content
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

Error with TranslatableTrait and doctrine/collections 2 #851

Open
dannyvw opened this issue Feb 15, 2024 · 2 comments
Open

Error with TranslatableTrait and doctrine/collections 2 #851

dannyvw opened this issue Feb 15, 2024 · 2 comments

Comments

@dannyvw
Copy link
Contributor

dannyvw commented Feb 15, 2024

Sylius version affected: v1.11.0-ALPHA.2

Description
The fallback locale can be null and this triggers the following error

Doctrine\Common\Collections\ArrayCollection::get():` Argument #1 ($key) must be of type string|int, null given, called in /var/www/html/vendor/sylius/resource-bundle/src/Component/src/Model/TranslatableTrait.php on line 72

Steps to reproduce
Use doctrine/collections > 2

Possible Solution

@loic425
Copy link
Member

loic425 commented Feb 16, 2024

Thx, I've added the doctrine/collection "v2.0" dependency today in two PRs, so I think it will be fixed soon.
There are some other important issues in the alpha-2 (autowiring with moved classes), So I hope we'll release a new one in few days.

@dannyvw
Copy link
Contributor Author

dannyvw commented Oct 8, 2024

This is still an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants