From 2bcd41e23711076c6697ab9b9cde368c61d8d7e3 Mon Sep 17 00:00:00 2001 From: adamthehutt Date: Thu, 6 Dec 2007 14:17:03 +0000 Subject: [PATCH] Fix for ticket #650 Ticket: 650 --- lib/Doctrine/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);