Commit fe5a356a authored by guilhermeblanco's avatar guilhermeblanco

[2.0][DDC-31] Fixed issue with column definition of 'name' when it is not set.

parent 679191a4
......@@ -1567,9 +1567,14 @@ final class ClassMetadata
public function setDiscriminatorColumn($columnDef)
{
$this->discriminatorColumn = $columnDef;
if ( ! isset($columnDef['fieldName'])) {
$this->discriminatorColumn['fieldName'] = $columnDef['name'];
}
if ( ! isset($columnDef['name'])) {
$this->discriminatorColumn['name'] = $this->discriminatorColumn['fieldName'];
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment