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

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

Open
lucassimonin opened this issue Aug 5, 2021 · 2 comments
Open

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

lucassimonin opened this issue Aug 5, 2021 · 2 comments

Comments

@lucassimonin
Copy link

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
Copy link
Collaborator

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

@lucassimonin
Copy link
Author

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

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

No branches or pull requests

2 participants