Commit 7fc6b420 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #459 from deeky666/DBAL-544

[DBAL-544] Fix reference to legacy Query::HYDRATE_* constants in ResultStatement documentation
parents 0724b025 aad4ca7f
......@@ -45,22 +45,27 @@ interface ResultStatement extends \Traversable
/**
* Sets the fetch mode to use while iterating this statement.
*
* @param integer $fetchMode
* @param integer $fetchMode The fetch mode must be one of the PDO::FETCH_* constants.
* @param mixed $arg2
* @param mixed $arg3
*
* @return boolean
*
* @see PDO::FETCH_* constants.
*/
public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null);
/**
* @see Query::HYDRATE_* constants
* Returns the next row of a result set.
*
* @param integer|null $fetchMode Controls how the next row will be returned to the caller.
* This value must be one of the Query::HYDRATE_* constants,
* defaulting to Query::HYDRATE_BOTH
* The value must be one of the PDO::FETCH_* constants,
* defaulting to PDO::FETCH_BOTH.
*
* @return mixed The return value of this method on success depends on the fetch mode. In all cases, FALSE is
* returned on failure.
*
* @return mixed
* @see PDO::FETCH_* constants.
*/
public function fetch($fetchMode = null);
......@@ -68,10 +73,12 @@ interface ResultStatement extends \Traversable
* Returns an array containing all of the result set rows.
*
* @param integer|null $fetchMode Controls how the next row will be returned to the caller.
* This value must be one of the Query::HYDRATE_* constants,
* defaulting to Query::HYDRATE_BOTH
* The value must be one of the PDO::FETCH_* constants,
* defaulting to PDO::FETCH_BOTH.
*
* @return array
*
* @see PDO::FETCH_* constants.
*/
public function fetchAll($fetchMode = null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment