Permalink
Browse files

NEW: Allow hashes to be passed as ArrayList items; the will be turned…

… into ArrayData objects.
  • Loading branch information...
sminnee authored and chillu committed Oct 16, 2012
1 parent 9a2ba48 commit c4dde9022df3b2d1bbdaa6468301ddeeaccda48f
Showing with 3 additions and 0 deletions.
  1. +3 −0 model/ArrayList.php
View
@@ -55,6 +55,9 @@ public function exists() {
* @return ArrayIterator
*/
public function getIterator() {
+ foreach($this->items as $i => $item) {
+ if(is_array($item)) $this->items[$i] = new ArrayData($item);
+ }
return new ArrayIterator($this->items);
}

0 comments on commit c4dde90

Please sign in to comment.