This commit is contained in:
parent
c9268d286f
commit
45cb86dab9
1 changed files with 5 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue