Commit f0448130 authored by romanb's avatar romanb

added blob,clob,gzip type validation

parent 88fc0f1e
......@@ -270,6 +270,10 @@ class Doctrine_Validator extends Doctrine_Object
return (String)$var == strval(intval($var));
case 'string':
return is_string($var) || is_int($var) || is_float($var);
case 'blob':
case 'clob':
case 'gzip':
return is_string($var);
case 'array':
return is_array($var);
case 'object':
......
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