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

$translatable must not be defined (as in class Sylius\Component\Resource\Model\AbstractTranslation) #150

Open
bellu opened this issue Apr 16, 2024 · 3 comments

Comments

@bellu
Copy link

bellu commented Apr 16, 2024

After updating my php version to 8.1 and SyliusCustomOptionsPlugin to 4.0, i've this error during composer install:

!! Fatal error: Type of Brille24\SyliusCustomerOptionsPlugin\Entity\CustomerOptions\CustomerOptionGroupTranslation::$translatable must not be defined (as in class Sylius\Component\Resource\Model\AbstractTranslation) in /var/www/html/website/vendor/brille24/sylius-customer-options-plugin/src/Entity/CustomerOptions/CustomerOptionGroupTranslation.php on line 21

@mamazu
Copy link
Collaborator

mamazu commented Apr 16, 2024

Hey thanks for reporting this issue. Can you have a look at what version of Sylius are you running but most importantly what version of the resource bundle. It should be compatible.

@bellu
Copy link
Author

bellu commented Apr 16, 2024

I'm using sylius 1.10.9 and brille24/sylius-customer-options-plugin 4.0.0

@mamazu
Copy link
Collaborator

mamazu commented Apr 16, 2024

If you are running that old of a version of Sylius you might need to upgrade the resource bundle:

composer update sylius/resource-bundle

It has to be at least version 1.10.

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

No branches or pull requests

2 participants