1
0
mirror of synced 2025-02-20 14:13:15 +03:00
This commit is contained in:
romanb 2007-10-21 08:16:31 +00:00
parent edc03d5a33
commit 3799de836d

View File

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