Author: jwage
Date: 2008-08-27 05:19:37 +0100 (Wed, 27 Aug 2008)
New Revision: 4838

Modified:
   branches/1.0/lib/Doctrine/Record/Abstract.php
Log:
fixes #1343


Modified: branches/1.0/lib/Doctrine/Record/Abstract.php
===================================================================
--- branches/1.0/lib/Doctrine/Record/Abstract.php       2008-08-27 04:15:27 UTC 
(rev 4837)
+++ branches/1.0/lib/Doctrine/Record/Abstract.php       2008-08-27 04:19:37 UTC 
(rev 4838)
@@ -231,7 +231,8 @@
     public function hasColumns(array $definitions)
     {
         foreach ($definitions as $name => $options) {
-            $this->hasColumn($name, $options['type'], $options['length'], 
$options);
+            $length = isset($options['length']) ? $options['length']:null;
+            $this->hasColumn($name, $options['type'], $length, $options);
         }
     }
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to