Closed youssefsimon closed 8 years ago
i fixed by elcodi_attribute: mapping: value:
class: Elcodi\Admin\AttributeBundle\Entity\NewValue
# Doctrine manager name
mapping_file: '@AdminAttributeBundle/Resources/config/doctrine/Value.orm.yml'
# Doctrine manager name
manager: default
# Is this entity enabled?
enabled: true
i want to alter table value by override entity i do what is write in docs but it tell me
[Doctrine\DBAL\Schema\SchemaException]
The table with name 'bamboo.value' already exists. if you have any idea this config file elcodi_attribute: mapping: attribute:
Product entity implementing ProductInterface
and value.orm.yml
Elcodi\Admin\AttributeBundle\Entity\NewValue: type: entity repositoryClass: Elcodi\Component\Attribute\Repository\ValueRepository table: value fields: color: column: color type: string length: 255 nullable: false
and this NewValue.php
namespace Elcodi\Admin\AttributeBundle\Entity;
use Elcodi\Component\Attribute\Entity\Value;
use Elcodi\Component\Attribute\Entity\Interfaces\AttributeInterface; use Elcodi\Component\Attribute\Entity\Interfaces\ValueInterface; use Elcodi\Component\Core\Entity\Traits\IdentifiableTrait;
/**
Class NewValue. */ class NewValue extends Value {
/**
/**
/**
return $this; }
}