odiseoteam / SyliusVendorPlugin

This is a Sylius Plugin that add vendors (brands) to your store. The vendors is an entity that sells products and are fully customizable by the admin.
https://odiseo.io
MIT License
57 stars 20 forks source link

The table with name 'sylius.odiseo_vendor' already exists. #19

Open lucassimonin opened 3 years ago

lucassimonin commented 3 years ago

Hello,

When I try to override the model with the configuration like this:

sylius_resource:
    resources:
        odiseo_sylius_vendor_plugin.vendor:
            classes:
                model: App\Entity\Vendor\Vendor
use Odiseo\SyliusVendorPlugin\Entity\Vendor as BaseVendor;
use Doctrine\ORM\Mapping as ORM;

/**
 * Class Vendor
 *
 * @package App\Entity\Vendor
 * @ORM\Entity
 * @ORM\Table(name="odiseo_vendor")
 */
class Vendor extends BaseVendor
[...]

and when I try to update schema i got this error: The table with name 'sylius.odiseo_vendor' already exists.

Can you help me ?

thank :)

bigboss86 commented 3 years ago

Hi @lucassimonin. Have you tried adding the "mapped-superclass" annotation?

lucassimonin commented 3 years ago

hi @bigboss86, I tried but it's doesn't works :/