Doctrine\DBAL\Statement
A thin wrapper around a Doctrine\DBAL\Driver\Statement that adds support for logging, DBAL mapping types, etc.
- Author: Roman Borschel <roman@code-factory.org>
Synopsis
class Statement
implements
IteratorAggregate,Statement
{
- // members
- protected string $sql;
- protected array $params;
- protected array $types;
- protected Statement $stmt;
- protected AbstractPlatform $platform;
- protected Connection $conn;
- // methods
- public void __construct()
- public boolean bindValue()
- public boolean bindParam()
- public boolean execute()
- public boolean closeCursor()
- public integer columnCount()
- public string errorCode()
- public array errorInfo()
- public void setFetchMode()
- public void getIterator()
- public mixed fetch()
- public array fetchAll()
- public mixed fetchColumn()
- public integer rowCount()
- public Statement getWrappedStatement()
Hierarchy
Implements
Members
protected
- $conn — \Doctrine\DBAL\Connection
- $params — array
- $platform — \Doctrine\DBAL\Platforms\AbstractPlatform
- $sql — string
- $stmt — \Doctrine\DBAL\Driver\Statement
- $types — array
Methods
public
- __construct() — Creates a new <tt>Statement</tt> for the given SQL and <tt>Connection</tt>.
- bindParam() — Binds a parameter to a value by reference.
- bindValue() — Binds a parameter value to the statement.
- closeCursor() — Closes the cursor, freeing the database resources used by this statement.
- columnCount() — Returns the number of columns in the result set.
- errorCode() — Fetches the SQLSTATE associated with the last operation on the statement.
- errorInfo() — Fetches extended error information associated with the last operation on the statement.
- execute() — Executes the statement with the currently bound parameters.
- fetch() — Fetches the next row from a result set.
- fetchAll() — Returns an array containing all of the result set rows.
- fetchColumn() — Returns a single column from the next row of a result set.
- getIterator()
- getWrappedStatement() — Gets the wrapped driver statement.
- rowCount() — Returns the number of rows affected by the last execution of this statement.
- setFetchMode()