Commits

Harro Verton committed a0586b3

removed $object->clear() test code

Comments (0)

Files changed (1)

application/datamapper/array.php

 	 */
 	function from_array($object, $data, $fields = '', $save = FALSE)
 	{
-		// clear the current object
-		$object->clear();
-
 		// keep track of newly related objects
 		$new_related_objects = array();
 
 	 */
 	function all_from_array($object, $data, $fields = '')
 	{
-		// clear the current object
-		$object->clear();
-
 		// get the objects class name, we need it to construct copies
 		$class = get_class($object);