Property | Type | Description | |
---|---|---|---|
$conn | Doctrine\DBAL\Connection | The connection this statement is bound to and executed on. | |
$params | array | The bound parameters. | |
$platform | Doctrine\DBAL\Platforms\AbstractPlatform | The underlying database platform. | |
$sql | string | The SQL statement. | |
$stmt | Doctrine\DBAL\Driver\Statement | The underlying driver statement. | |
$types | array | The parameter types. |
Method | Description | |
---|---|---|
__construct ( string $sql, Doctrine\DBAL\Connection $conn ) | Creates a new Statement for the given SQL and Connection. | |
bindParam ( string $name, mixed &$var, integer $type = PDO::PARAM_STR, integer | null $length = null ) : boolean | Binds a parameter to a value by reference. | |
bindValue ( string $name, mixed $value, mixed $type = null ) : boolean | Binds a parameter value to the statement. | |
closeCursor ( ) : boolean | Closes the cursor, freeing the database resources used by this statement. | |
columnCount ( ) : integer | Returns the number of columns in the result set. | |
errorCode ( ) : string | Fetches the SQLSTATE associated with the last operation on the statement. | |
errorInfo ( ) : array | Fetches extended error information associated with the last operation on the statement. | |
execute ( array | null $params = null ) : boolean | Executes the statement with the currently bound parameters. | |
fetch ( integer | null $fetchMode = null ) : mixed | Fetches the next row from a result set. | |
fetchAll ( integer | null $fetchMode = null, mixed $fetchArgument ) : array | Returns an array containing all of the result set rows. | |
fetchColumn ( integer $columnIndex ) : mixed | Returns a single column from the next row of a result set. | |
getIterator ( ) | Required by interface IteratorAggregate. | |
getWrappedStatement ( ) : Doctrine\DBAL\Driver\Statement | Gets the wrapped driver statement. | |
rowCount ( ) : integer | Returns the number of rows affected by the last execution of this statement. | |
setFetchMode ( $fetchMode, $arg2 = null, $arg3 = null ) |
public __construct ( string $sql, Doctrine\DBAL\Connection $conn ) | ||
$sql | string | The SQL of the statement. |
$conn | Doctrine\DBAL\Connection | The connection on which the statement should be executed. |
public bindParam ( string $name, mixed &$var, integer $type = PDO::PARAM_STR, integer | null $length = null ) : boolean | ||
$name | string | The name or position of the parameter. |
$var | mixed | The reference to the variable to bind. |
$type | integer | The PDO binding type. |
$length | integer | null | Must be specified when using an OUT bind so that PHP allocates enough memory to hold the returned value. |
return | boolean | TRUE on success, FALSE on failure. |
public closeCursor ( ) : boolean | ||
return | boolean | TRUE on success, FALSE on failure. |
public columnCount ( ) : integer | ||
return | integer |
public fetchColumn ( integer $columnIndex ) : mixed | ||
$columnIndex | integer | |
return | mixed | A single column from the next row of a result set or FALSE if there are no more rows. |
public getWrappedStatement ( ) : Doctrine\DBAL\Driver\Statement | ||
return | Doctrine\DBAL\Driver\Statement |
protected Connection,Doctrine\DBAL $conn | ||
return | Doctrine\DBAL\Connection |
protected AbstractPlatform,Doctrine\DBAL\Platforms $platform | ||
return | Doctrine\DBAL\Platforms\AbstractPlatform |
protected Statement,Doctrine\DBAL\Driver $stmt | ||
return | Doctrine\DBAL\Driver\Statement |