Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Problems customising Block entity #36

@sweoggy

Description

@sweoggy

When I try to customise the Block entity, using the http://docs.sylius.org/en/latest/customization/model.html guide, I get an exception when trying to updated the database schema

[Doctrine\DBAL\Schema\SchemaException]
The table with name 'persiennbutiken_ng.bitbag_cms_block' already exists.

My config looks the following:

sylius_resource:
    resources:
        bitbag.block:
            classes:
                model: AppBundle\Entity\CmsPlugin\Block

And my entity:

/**
 * @ORM\Table(name="bitbag_cms_block")
 * @ORM\Entity(repositoryClass="BitBag\CmsPlugin\Repository\BlockRepository")
 */
class Block extends BaseBlock implements BlockInterface

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions