Closed mraivaras closed 4 years ago
Found solution for this in Sylius v1.7.4. Sylius somewhy generates empty class by default on src/Entity/Order/OrderItem.php
. So basically what needs to done is to change line 8 from
use Sylius\Component\Core\Model\OrderItem as BaseOrderItem;
to
use BitBag\SyliusVueStorefrontPlugin\Sylius\Entity\Order\OrderItem as BaseOrderItem;
It's mentioned in the updated README file. Thank you for your input! I'm closing this one as it's resolved.
Hello
When I try update database schema with
bin/console doctrine:schema:update --force
I'm getting this errorAlso tried this with existing table and without, same error. I think it's something related with src/Resources/config/doctrine/Order.OrderItem.orm.xml but not sure. This error reproduce on Sylius v1.7.4 but I think I tried on v1.6.0 and got same error. Without this some features breaks down. As I understand
sylius_order_item
table requires to haveuuid
because plugin overridesOrderItem
Model withBitBag\SyliusVueStorefrontPlugin\Sylius\Entity\Order\OrderItem
. It would be nice to know at least how to make work around.Thanks