src/db/orm/Worker.php
protected function makeObjects(IResult $result) {

        // TODO: Prefer to return existing instances from IdentityMap

        $instances = [];
        while ($row = $result->fetchRow(ARRAY_ASSOC)) {
            $instances[] = PersistableObject::populateNew($this->entityClass, $row);
        }
        return $instances;
    }
protected function makeObjects(IResult $result) {

        // TODO: Prefer to return existing instances from IdentityMap

        $instances = [];
        while ($row = $result->fetchRow(ARRAY_ASSOC)) {
            $instances[] = PersistableObject::populateNew($this->entityClass, $row);
        }
        return $instances;
    }
protected function makeObjects ( IResult $ result ) { // TODO: Prefer to return existing instances from IdentityMap $ instances = [ ] ; while ( $ row = $ result -> fetchRow ( ARRAY_ASSOC ) ) { $ instances [ ] = PersistableObject :: populateNew ( $ this -> entityClass , $ row ) ; } return $ instances ; }
Convert all remaining rows of a result to objects of the model class.

@param  IResult $result

@return PersistableObject[] - array of instances or an empty array if the result doesn't hold any more rows
Convert all remaining rows of a result to objects of the model class .