]> git.andy128k.dev Git - ipf-legacy-orm.git/commitdiff
simplify column definition
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 27 Jul 2013 17:58:29 +0000 (20:58 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 27 Jul 2013 17:58:29 +0000 (20:58 +0300)
ipf/orm/import/builder.php

index 3be0494ff0b428faf4c44f9a87257ea934379d35..cf027a2d16e5ac6cb29bb36df22c9a8e13f7bd67 100644 (file)
@@ -164,7 +164,7 @@ class IPF_ORM_Import_Builder
         $result = array();
         foreach ($columns as $name => $column) {
             $columnName = isset($column['name']) ? $column['name']:$name;
-            $build = "    ".'$this->getTable()->setColumn(\'' . $columnName . '\', \'' . $column['type'] . '\'';
+            $build = "    ".'$table->setColumn(\'' . $columnName . '\', \'' . $column['type'] . '\'';
 
             if ($column['length']) {
                 if (is_numeric($column['length']))