Changeset 1437 for trunk/system/libraries/ORM.php
- Timestamp:
- 12/06/2007 08:15:37 PM (13 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/ORM.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/ORM.php
r1419 r1437 229 229 230 230 // Find requested objects 231 return isset($all) ? $this-> find_all() : $this->find();231 return isset($all) ? $this->load_result(TRUE) : $this->find(); 232 232 } 233 233 … … 259 259 } 260 260 261 return $model-> find_all();261 return $model->load_result(TRUE); 262 262 } 263 263 … … 619 619 $class = get_class($this); 620 620 621 $result = $result->result_array(); 622 621 623 $array = array(); 622 foreach($result ->result_array()as $row)624 foreach($result as $row) 623 625 { 624 626 // Add object to the array
