public function getIterator() {
        $ret = array('id' => $this->record->id);
        foreach ($this->record as $property => $value) {
            $ret[$property] = $value;
        }
        return new ArrayIterator($ret);
    }
public function getIterator() {
        $ret = array('id' => $this->record->id);
        foreach ($this->record as $property => $value) {
            $ret[$property] = $value;
        }
        return new ArrayIterator($ret);
    }
public function getIterator ( ) { $ ret = array ( 'id' => $ this -> record -> id ) ; foreach ( $ this -> record as $ property => $ value ) { $ ret [ $ property ] = $ value ; } return new ArrayIterator ( $ ret ) ; }
Create an iterator because magic vars can't be seen by 'foreach'.
Exclude context fields

Implementing method from interface IteratorAggregate

@return ArrayIterator
Create an iterator because magic vars can t be seen by foreach . Exclude context fields