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

        // TODO: Prefer to return existing instance from IdentityMap

        $row = $result->fetchRow(ARRAY_ASSOC);
        if ($row === null)
            return null;
        return PersistableObject::populateNew($this->entityClass, $row);
    }
protected function makeObject(IResult $result) {

        // TODO: Prefer to return existing instance from IdentityMap

        $row = $result->fetchRow(ARRAY_ASSOC);
        if ($row === null)
            return null;
        return PersistableObject::populateNew($this->entityClass, $row);
    }
protected function makeObject ( IResult $ result ) { // TODO: Prefer to return existing instance from IdentityMap $ row = $ result -> fetchRow ( ARRAY_ASSOC ) ; if ( $ row === null ) return null ; return PersistableObject :: populateNew ( $ this -> entityClass , $ row ) ; }
Convert the next row of a result to an object of the model class.

@param  IResult $result

@return PersistableObject|null - instance or NULL if the result doesn't hold any more rows
Convert the next row of a result to an object of the model class .