Commit 3799de83 authored by romanb's avatar romanb

fixed #485

parent edc03d5a
...@@ -167,7 +167,8 @@ class Doctrine_Validator extends Doctrine_Locator_Injectable ...@@ -167,7 +167,8 @@ class Doctrine_Validator extends Doctrine_Locator_Injectable
*/ */
private function validateLength($column, $key, $value) 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; return true;
} else if ($column['type'] == 'array' || $column['type'] == 'object') { } else if ($column['type'] == 'array' || $column['type'] == 'object') {
$length = strlen(serialize($value)); $length = strlen(serialize($value));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment