Doctrine\DBAL\Statement::bindParam
Binds a parameter to a value by reference.
Binding a parameter by reference does not support DBAL mapping types.
Signature
public function bindParam(string
$name,
[mixed&
$var = PDO::PARAM_STR,
[integer
$type = PDO::PARAM_STR,
[
$length = null]]] )
Parameters
$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
—
Returns
- boolean
- TRUE on success, FALSE on failure.