Db\Result\Pdo::numRows

public numRows () Gets number of rows returned by a resultset $result = $connection->query("SELECT * FROM robots ORDER BY name"); echo 'There are ', $result->numRows(), ' rows in the resultset';

Db\Result\Pdo::fetchAll

public fetchAll ([mixed $fetchStyle], [mixed $fetchArgument], [mixed $ctorArgs]) Returns an array of arrays containing all the records in the result This method is affected by the active fetch flag set using Phalcon\Db\Result\Pdo::setFetchMode $result = $connection->query("SELECT * FROM robots ORDER BY name"); $robots = $result->fetchAll();

Debug

Source on GitHub Provides debug capabilities to Phalcon applications Methods public setUri (mixed $uri) Change the base URI for static resources public setShowBackTrace (mixed $showBackTrace) Sets if files the exception’s backtrace must be showed public setShowFiles (mixed $showFiles) Set if files part of the backtrace must be shown in the output public setShowFileFragment (mixed $showFileFragment) Sets if files must be completely opened and showed in the output or just the fragment related to

Db\ResultInterface::execute

abstract public execute () ...

Db\ResultInterface::fetchArray

abstract public fetchArray () ...

Db\ResultInterface::fetchAll

abstract public fetchAll () ...

Db\Result\Pdo

implements Phalcon\Db\ResultInterface Source on GitHub Encapsulates the resultset internals $result = $connection->query("SELECT * FROM robots ORDER BY name"); $result->setFetchMode(Phalcon\Db::FETCH_NUM); while ($robot = $result->fetchArray()) { print_r($robot); } Methods public __construct (Phalcon\Db\AdapterInterface $connection, PDOStatement $result, [string $sqlStatement], [array $bindParams], [array $bindTypes]) Phalcon\Db\Result\Pdo constructor public execute () Allows to e

Db\ResultInterface::getInternalResult

abstract public getInternalResult () ...

Db\ResultInterface::fetch

abstract public fetch () ...

Db\ResultInterface::setFetchMode

abstract public setFetchMode (mixed $fetchMode) ...