default size for columns
This commit is contained in:
parent
cf939c6d3a
commit
4622a71e82
@ -335,7 +335,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
|
||||
* @param mixed $options
|
||||
* @return void
|
||||
*/
|
||||
final public function setColumn($name, $type, $length, $options = array()) {
|
||||
final public function setColumn($name, $type, $length = null, $options = array()) {
|
||||
if(is_string($options))
|
||||
$options = explode('|', $options);
|
||||
|
||||
@ -348,6 +348,10 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
|
||||
}
|
||||
}
|
||||
$name = strtolower($name);
|
||||
|
||||
if($length == null)
|
||||
$length = 2147483647;
|
||||
|
||||
$this->columns[$name] = array($type, $length, $options);
|
||||
|
||||
if(isset($options['primary'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user