Removed an unused private method in the SchemaValidator
This commit is contained in:
parent
5a6c398ea0
commit
1d3fe87215
@ -254,29 +254,6 @@ class SchemaValidator
|
||||
return $ce;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $columnName
|
||||
* @param ClassMetadataInfo $class
|
||||
* @return bool
|
||||
*/
|
||||
private function columnExistsOnEntity($columnName, $class)
|
||||
{
|
||||
if (isset($class->fieldNames[$columnName])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
foreach ($class->associationMappings as $assoc) {
|
||||
if ($assoc['isOwningSide']) {
|
||||
foreach ($assoc['joinColumns'] as $columnMapping) {
|
||||
if ($columnMapping['name'] == $columnName) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the Database Schema is in sync with the current metadata state.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user