From c045174fde853dcc070e7f2dce8da355b9aae35d Mon Sep 17 00:00:00 2001 From: zYne Date: Mon, 30 Jul 2007 19:29:37 +0000 Subject: [PATCH] --- lib/Doctrine/Table.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index 85eb51230..89a0fb718 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -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;