Library/Joomla/Database/Driver/AbstractDoctrineDriver.php
public function loadNextObject($class = 'stdClass')
    {
        $this->connect();

        // Execute the query and get the result set cursor.
        if (!$this->executed) {
            if (!($this->execute())) {
                return $this->errorNum ? null : false;
            }
        }

        // Get the next row from the result set as an object of type $class.
        if ($row = $this->fetchObject(null, $class)) {
            return $row;
        }

        // Free up system resources and return.
        $this->freeResult();

        return false;
    }
public function loadNextObject($class = 'stdClass')
    {
        $this->connect();

        // Execute the query and get the result set cursor.
        if (!$this->executed) {
            if (!($this->execute())) {
                return $this->errorNum ? null : false;
            }
        }

        // Get the next row from the result set as an object of type $class.
        if ($row = $this->fetchObject(null, $class)) {
            return $row;
        }

        // Free up system resources and return.
        $this->freeResult();

        return false;
    }
public function loadNextObject ( $ class = 'stdClass' ) { $ this -> connect ( ) ; // Execute the query and get the result set cursor. if ( ! $ this -> executed ) { if ( ! ( $ this -> execute ( ) ) ) { return $ this -> errorNum ? null : false ; } } // Get the next row from the result set as an object of type $class. if ( $ row = $ this -> fetchObject ( null , $ class ) ) { return $ row ; } // Free up system resources and return. $ this -> freeResult ( ) ; return false ; }
Method to get the next row in the result set from the database query as an object.

@param   string $class The class name to use for the returned row object.

@return  mixed   The result of the query as an array, false if there are no more rows.
@throws  RuntimeException
@author Maximiian Ruta <mr@xtain.net>
Method to get the next row in the result set from the database query as an object .