public function prepareResults(&$rows)
    {
        foreach ($rows as $key => &$row) {
            $row = $this->create($row);
        }
        return $rows;
    }
public function prepareResults(&$rows)
    {
        foreach ($rows as $key => &$row) {
            $row = $this->create($row);
        }
        return $rows;
    }
public function prepareResults ( & $ rows ) { foreach ( $ rows as $ key => & $ row ) { $ row = $ this -> create ( $ row ) ; } return $ rows ; }
Convert results to DataItem objects

@param array $rows - Data items to be casted
@return DataItem[]
Convert results to DataItem objects