From 2f845e8bcb1c3c8f1a8588ee2636cc0e4fcbad39 Mon Sep 17 00:00:00 2001 From: Andrew Meredith Date: Tue, 6 May 2014 09:31:26 -0600 Subject: Ensure database set up always --- idiorm.php | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit v1.2.3