From 45cb86dab9277ebf918adb76cd14eb5ab1e75a0b Mon Sep 17 00:00:00 2001 From: zYne Date: Fri, 3 Aug 2007 20:57:07 +0000 Subject: [PATCH] --- lib/Doctrine/Validator.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Doctrine/Validator.php b/lib/Doctrine/Validator.php index e287d0fb3..ba216bafe 100644 --- a/lib/Doctrine/Validator.php +++ b/lib/Doctrine/Validator.php @@ -111,6 +111,11 @@ class Doctrine_Validator extends Doctrine_Object || $name == 'zerofill') { continue; } + + if (strtolower($name) === 'notnull' && isset($column['autoincrement'])) { + continue; + } + if (strtolower($name) == 'length') { if (!$record->getTable()->getAttribute(Doctrine::ATTR_AUTO_LENGTH_VLD)) { if (!$this->validateLength($column, $key, $value)) {