Db\Result\Pdo
Class Phalcon\Db\Result\Pdo
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 boolean execute ()
Allows to executes the statement again. Some database systems don’t support scrollable cursors, So, as cursors are forward