This commit is contained in:
parent
c9268d286f
commit
45cb86dab9
@ -111,6 +111,11 @@ class Doctrine_Validator extends Doctrine_Object
|
|||||||
|| $name == 'zerofill') {
|
|| $name == 'zerofill') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strtolower($name) === 'notnull' && isset($column['autoincrement'])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (strtolower($name) == 'length') {
|
if (strtolower($name) == 'length') {
|
||||||
if (!$record->getTable()->getAttribute(Doctrine::ATTR_AUTO_LENGTH_VLD)) {
|
if (!$record->getTable()->getAttribute(Doctrine::ATTR_AUTO_LENGTH_VLD)) {
|
||||||
if (!$this->validateLength($column, $key, $value)) {
|
if (!$this->validateLength($column, $key, $value)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user