fixed #485
This commit is contained in:
parent
edc03d5a33
commit
3799de836d
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user