This commit is contained in:
parent
aa1aa84b52
commit
c045174fde
@ -701,7 +701,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
|
||||
|
||||
|
||||
if ($length == null &&
|
||||
$type === 'string' ||
|
||||
$type === 'string' ||
|
||||
$type === 'clob' ||
|
||||
$type === 'integer' ||
|
||||
$type === 'blob' ||
|
||||
@ -710,10 +710,6 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
|
||||
$length = 2147483647;
|
||||
}
|
||||
|
||||
if ((string) (int) $length !== (string) $length) {
|
||||
throw new Doctrine_Table_Exception('Invalid argument given for column length');
|
||||
}
|
||||
|
||||
$this->columns[$name] = $options;
|
||||
$this->columns[$name]['type'] = $type;
|
||||
$this->columns[$name]['length'] = $length;
|
||||
|
Loading…
x
Reference in New Issue
Block a user