DDC-969: SchemaTool fails with class table inheritance if id columnName is not "id" #5504

Closed
doctrinebot opened this Issue Jan 5, 2011 · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user ayhan:

In method getSchemaFromMetadata() within the $class->isInheritanceTypeJoined() part the following line

$table->getColumn($class->identifier[0])->setAutoincrement(false);

leads to a Doctrine\DBAL\Schema\SchemaException::columnDoesNotExist()_ if a columnName other then id is used for the id field, as not the columnName (but the field name) is passed to _$table->getColumn().

Should rather be

$table->getColumn($columnName)->setAutoincrement(false);
@doctrinebot

Comment created by @beberlei:

Fixed

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0.1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment