1
0
mirror of synced 2025-02-03 05:49:25 +03:00

remove else

This commit is contained in:
ReenExe 2016-07-03 00:21:00 +03:00
parent 99b1eaaabb
commit f7c16ab364

View File

@ -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.