Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2.1
-
Fix Version/s: None
-
Component/s: Inheritance
-
Labels:None
-
Environment:MySQL 5 / PHP 5.3.1 / Symfony 1.4.3 (branch) / Doctrine 1.2.1 / Mac OSX
Description
When creating a model involving column_inheritance the CREATE TABLE statement gets duplicated.
The second CREATE TABLE include an index for the keyField.
Test doctrine generated models and generated schema.sql attached.
A little addition to the symptoms of this problem.
If the one of the child classes has a foreign key to another entity, another Third Create table SQL will be created, which contains the an index on the foreign key column.
In other words, it seems that an additional create table statement is created for each automatically created index.
An illustration is in the attached yml and sql schema:
kerdany_10-11-18-08-30.yml
kerdany_10-11-18-08-30.sql
Tom Boutell: doctrine:build --all generates the problem with me!