From cded682ee410c0b85e7c5a102e8c2d697bf19ebc Mon Sep 17 00:00:00 2001 From: zYne Date: Sun, 1 Oct 2006 14:48:53 +0000 Subject: [PATCH] fixed validators with default values --- lib/Doctrine/Validator.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Validator.php b/lib/Doctrine/Validator.php index 3c7f65f37..59630c701 100644 --- a/lib/Doctrine/Validator.php +++ b/lib/Doctrine/Validator.php @@ -178,7 +178,10 @@ class Doctrine_Validator { $args[0] = ''; } - if(empty($name) || $name == "primary" || $name == "protected" || $name == "autoincrement") + if(empty($name) || $name == 'primary' || + $name == 'protected' || + $name == 'autoincrement' || + $name == 'default') continue; $validator = self::getValidator($name);