src/ORM/DataList.php
public function toArray()
    {
        $query = $this->dataQuery->query();
        $rows = $query->execute();
        $results = [];

        foreach ($rows as $row) {
            $results[] = $this->createDataObject($row);
        }

        return $results;
    }
public function toArray()
    {
        $query = $this->dataQuery->query();
        $rows = $query->execute();
        $results = [];

        foreach ($rows as $row) {
            $results[] = $this->createDataObject($row);
        }

        return $results;
    }
public function toArray ( ) { $ query = $ this -> dataQuery -> query ( ) ; $ rows = $ query -> execute ( ) ; $ results = [ ] ; foreach ( $ rows as $ row ) { $ results [ ] = $ this -> createDataObject ( $ row ) ; } return $ results ; }
Return an array of the actual items that this DataList contains at this stage.
This is when the query is actually executed.

@return array
Return an array of the actual items that this DataList contains at this stage . This is when the query is actually executed .