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;

 			}