1
0
mirror of synced 2025-01-30 03:51:43 +03:00

Fix for ticket #650

Ticket: 650
This commit is contained in:
adamthehutt 2007-12-06 14:17:03 +00:00
parent 19c08a2f95
commit 2bcd41e237

View File

@ -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);