Fixed a bug in _object_to_array that broke some types of inserts and updates.
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index 4bf3098..b959405 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -1202,7 +1202,9 @@
 		$array = array();

 		foreach (get_object_vars($object) as $key => $val)

 		{

-			if ( ! is_object($val) AND ! is_array($val))

+			// There are some built in keys we need to ignore for this conversion

+			if ( ! is_object($val) && ! is_array($val) && $key != '_parent_name' && $key != '_ci_scaffolding' && $key != '_ci_scaff_table')

+  

 			{

 				$array[$key] = $val;

 			}

diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 152dd48..3c23465 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -99,6 +99,7 @@
     <li>Fixed a bug in <kbd>_html_entity_decode_callback()</kbd> when 'global_xss_filtering' is enabled.</li>

 	<li>Fixed a bug in the cookie helper "set_cookie" function.  It was not honoring the config settings.</li>

     <li>Fixed a bug that was making validation callbacks required even when not set as such.</li>

+    <li>Fixed a bug in _object_to_array that broke some types of inserts and updates.</li>

     <li>Fixed an example of comma-separated emails in the email library documentation.</li>

     <li>Fixed an example in the Calendar library for Showing Next/Previous Month Links.</li>

     <li>Fixed a typo in the database language file.</li>