All pastes #356273 Raw Edit

Mine

public text v1 · immutable
·published 2007-02-15 00:08 UTC
rendered paste body
class Testing extends RSAI 
{
    public function Execute()
    {
        $s = new DAOObject;
        $s->QueryName();

        $IS = $s->Cover(new IteratorSheet);

        $sports = array();
        foreach ($IS as $key => $Sport) {
           echo $Sport->FieldName;
           $sports[] = $Sport;
        }
        $this->NAS->Heap->Sports = $sports;
        $this->Render();
}

Then on the other side when you use $NAS->Heap->Sports you will not be able to iterate like you did in the original foreach.

foreach ($NAS->Heap->Sports as $sport) {
    print $sport->FieldName;
}

This is bogus.