summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
authorAndrew Meredith <[email protected]>2014-05-06 09:31:26 -0600
committerAndrew Meredith <[email protected]>2014-05-06 09:31:26 -0600
commit2f845e8bcb1c3c8f1a8588ee2636cc0e4fcbad39 (patch)
tree045f866046b92cb908f429d12ed5a843707d1378 /idiorm.php
parentddb8a305a59592101f8fd08060a67bb100393fa1 (diff)
Ensure database set up always
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/idiorm.php b/idiorm.php
index ed22d8b..ae97e01 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -233,6 +233,7 @@
* @return ORM
*/
public static function for_table($table_name, $connection_name = self::DEFAULT_CONNECTION) {
+ self::_setup_db($connection_name);
return new self($table_name, array(), $connection_name);
}