From 1d3fe87215df01eb6828fdcc8a4cdc03d6b7a137 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 22 Oct 2012 01:59:55 +0200 Subject: [PATCH] Removed an unused private method in the SchemaValidator --- lib/Doctrine/ORM/Tools/SchemaValidator.php | 23 ---------------------- 1 file changed, 23 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/SchemaValidator.php b/lib/Doctrine/ORM/Tools/SchemaValidator.php index bf2fa3028..fb1792494 100644 --- a/lib/Doctrine/ORM/Tools/SchemaValidator.php +++ b/lib/Doctrine/ORM/Tools/SchemaValidator.php @@ -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. *