diff --git a/lib/Doctrine/Validator.php b/lib/Doctrine/Validator.php index fa572aa3e..698ead7eb 100644 --- a/lib/Doctrine/Validator.php +++ b/lib/Doctrine/Validator.php @@ -84,7 +84,7 @@ class Doctrine_Validator extends Doctrine_Locator_Injectable $value = $value->getIncremented(); } - $column = $columns[$key]; + $column = $columns[$record->getTable()->getColumnName($key)]; if ($column['type'] == 'enum') { $value = $record->getTable()->enumIndex($key, $value);