1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Removed an unused private method in the SchemaValidator

This commit is contained in:
Christophe Coevoet 2012-10-22 01:59:55 +02:00
parent 5a6c398ea0
commit 1d3fe87215

View File

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