From f044813046d37b9e65868626cbcbe4b2820dfe90 Mon Sep 17 00:00:00 2001 From: romanb Date: Sun, 30 Sep 2007 07:36:17 +0000 Subject: [PATCH] added blob,clob,gzip type validation --- lib/Doctrine/Validator.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Doctrine/Validator.php b/lib/Doctrine/Validator.php index ec7f41668..e2ed5284e 100644 --- a/lib/Doctrine/Validator.php +++ b/lib/Doctrine/Validator.php @@ -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':