remove else
This commit is contained in:
parent
99b1eaaabb
commit
f7c16ab364
@ -2943,7 +2943,8 @@ class ClassMetadataInfo implements ClassMetadata
|
|||||||
{
|
{
|
||||||
if (isset($this->fieldNames[$columnName])) {
|
if (isset($this->fieldNames[$columnName])) {
|
||||||
return $this->fieldNames[$columnName];
|
return $this->fieldNames[$columnName];
|
||||||
} else {
|
}
|
||||||
|
|
||||||
foreach ($this->associationMappings as $assocName => $mapping) {
|
foreach ($this->associationMappings as $assocName => $mapping) {
|
||||||
if ($this->isAssociationWithSingleJoinColumn($assocName) &&
|
if ($this->isAssociationWithSingleJoinColumn($assocName) &&
|
||||||
$this->associationMappings[$assocName]['joinColumns'][0]['name'] == $columnName) {
|
$this->associationMappings[$assocName]['joinColumns'][0]['name'] == $columnName) {
|
||||||
@ -2954,7 +2955,6 @@ class ClassMetadataInfo implements ClassMetadata
|
|||||||
|
|
||||||
throw MappingException::noFieldNameFoundForColumn($this->name, $columnName);
|
throw MappingException::noFieldNameFoundForColumn($this->name, $columnName);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the ID generator used to generate IDs for instances of this class.
|
* Sets the ID generator used to generate IDs for instances of this class.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user