Sylius/SyliusResourceBundle

Error with TranslatableTrait and doctrine/collections 2

dannyvw opened this issue · 2 comments

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

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.

This is still an issue