Commit 88fc0f1e authored by romanb's avatar romanb

added enum type validation

parent 34f527ad
......@@ -282,6 +282,8 @@ class Doctrine_Validator extends Doctrine_Object
case 'date':
$validator = self::getValidator('date');
return $validator->validate($var);
case 'enum':
return is_string($var) || is_int($var);
default:
return false;
}
......
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