From 3799de836d14a7135444115a870d3f5fb7367825 Mon Sep 17 00:00:00 2001 From: romanb Date: Sun, 21 Oct 2007 08:16:31 +0000 Subject: [PATCH] fixed #485 --- lib/Doctrine/Validator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Validator.php b/lib/Doctrine/Validator.php index dcdcb684e..b4c834e4a 100644 --- a/lib/Doctrine/Validator.php +++ b/lib/Doctrine/Validator.php @@ -167,7 +167,8 @@ class Doctrine_Validator extends Doctrine_Locator_Injectable */ private function validateLength($column, $key, $value) { - if ($column['type'] == 'timestamp' || $column['type'] == 'integer') { + if ($column['type'] == 'timestamp' || $column['type'] == 'integer' || + $column['type'] == 'enum') { return true; } else if ($column['type'] == 'array' || $column['type'] == 'object') { $length = strlen(serialize($value));