1
0
mirror of synced 2025-01-21 07:41:41 +03:00

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

This commit is contained in:
guilhermeblanco 2009-10-03 16:19:51 +00:00
parent 679191a426
commit fe5a356aa0

View File

@ -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'];
}
} }
/** /**