summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-05-06 02:37:12 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-05-06 02:37:12 +0200
commitff390bdb457dbcfb5ba3e95323bce5f4a2c17497 (patch)
tree8a98d19c647a6083489b12fc72f03abb3efefc4d
parent7f309810a6d3da76c1a2c4ef8e900c88f47afee4 (diff)
DB Forge is now assigned to any models that exist after loading (#3457).
-rw-r--r--system/libraries/Loader.php2
-rw-r--r--user_guide/changelog.html3
2 files changed, 4 insertions, 1 deletions
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</p>
<li>Added the ability to prevent escaping in <kbd>having()</kbd> clauses.</li>
<li>Added <kbd>rename_table()</kbd> into <a href="./database/forge.html">DBForge</a>.</li>
<li>Fixed a bug that wasn't allowing escaping to be turned off if the value of a query was NULL.</li>
- </ul>
+ <li>DB Forge is now assigned to any models that exist after loading (#3457).</li>
+ </ul>
</li>
<li>Config
<ul>