fixed validators with default values
This commit is contained in:
parent
ab99a5fcc3
commit
cded682ee4
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue