[2.0][DDC-31] Fixed issue with column definition of 'name' when it is not set.
This commit is contained in:
parent
679191a426
commit
fe5a356aa0
@ -1567,9 +1567,14 @@ final class ClassMetadata
|
|||||||
public function setDiscriminatorColumn($columnDef)
|
public function setDiscriminatorColumn($columnDef)
|
||||||
{
|
{
|
||||||
$this->discriminatorColumn = $columnDef;
|
$this->discriminatorColumn = $columnDef;
|
||||||
|
|
||||||
if ( ! isset($columnDef['fieldName'])) {
|
if ( ! isset($columnDef['fieldName'])) {
|
||||||
$this->discriminatorColumn['fieldName'] = $columnDef['name'];
|
$this->discriminatorColumn['fieldName'] = $columnDef['name'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ! isset($columnDef['name'])) {
|
||||||
|
$this->discriminatorColumn['name'] = $this->discriminatorColumn['fieldName'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user