1
0
mirror of synced 2025-01-17 22:11:41 +03:00

added blob,clob,gzip type validation

This commit is contained in:
romanb 2007-09-30 07:36:17 +00:00
parent 88fc0f1e95
commit f044813046

View File

@ -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':