]> git.andy128k.dev Git - ipf-legacy-orm.git/commitdiff
sync all models at once
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 3 Aug 2013 07:53:55 +0000 (10:53 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 3 Aug 2013 07:53:55 +0000 (10:53 +0300)
ipf/orm.php

index cdc1bef8584911b56e2beaeb0672b538494da195..00aef1602e61dc8b9350a290efea569e9f4d595f 100644 (file)
@@ -196,9 +196,9 @@ final class IPF_ORM
         return $models;
     }
 
-    public static function createTablesFromModels($app)
+    public static function createTablesFromModels($models)
     {
-        IPF_ORM_Manager::connection()->export->exportClasses($app->modelList());
+        IPF_ORM_Manager::connection()->export->exportClasses($models);
     }
 
     public static function generateSqlFromModels($app)