coopTilleuls / CoopTilleulsSyliusClickNCollectPlugin

Sell and deliver securely during the COVID-19 pandemic!
https://click-n-collect.shop
GNU Affero General Public License v3.0
78 stars 34 forks source link

Issue with Sylius 1.9 and doctrine/common ^3.0 #57

Closed Kocal closed 3 years ago

Kocal commented 3 years ago

Description
When using this (very great :smile:) plugin with the new Sylius 1.9 which install doctrine/common:^3.0 (due to doctrine/orm:^2.7 requirement), it make bin/console cache:clear fails and the app unable to boot due to this error: image

How to reproduce

Possible Solution

In https://github.com/coopTilleuls/CoopTilleulsSyliusClickNCollectPlugin/blob/master/src/Fixture/Factory/OrderExampleFactory.php, replace Doctrine\Common\Persistence\ObjectManager instances by Doctrine\ORM\EntityManagerInterface and it should do the job.

Additional Context

hdasdoria commented 3 years ago

When will this fix be released in a tag? Cause the bug is still there...