From ff390bdb457dbcfb5ba3e95323bce5f4a2c17497 Mon Sep 17 00:00:00 2001
From: Derek Allard
Date: Tue, 6 May 2008 00:37:12 +0000
Subject: DB Forge is now assigned to any models that exist after loading
(#3457).
---
system/libraries/Loader.php | 2 ++
user_guide/changelog.html | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php
index 5cf1f2ae6..5966aebf6 100644
--- a/system/libraries/Loader.php
+++ b/system/libraries/Loader.php
@@ -272,6 +272,8 @@ class CI_Loader {
$class = 'CI_DB_'.$CI->db->dbdriver.'_forge';
$CI->dbforge = new $class();
+
+ $CI->load->_ci_assign_to_models();
}
// --------------------------------------------------------------------
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index ffbf2e18b..0d10d6446 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -66,7 +66,8 @@ SVN Commit: not currently released
Added the ability to prevent escaping in having() clauses.
Added rename_table() into DBForge.
Fixed a bug that wasn't allowing escaping to be turned off if the value of a query was NULL.
-
+ DB Forge is now assigned to any models that exist after loading (#3457).
+
Config