Doctrine\DBAL\Statement::bindValue
Binds a parameter value to the statement.
The value can optionally be bound with a PDO binding type or a DBAL mapping type. If bound with a DBAL mapping type, the binding type is derived from the mapping type and the value undergoes the conversion routines of the mapping type before being bound.
Signature
public function bindValue(string
$name,
[mixed
$value = null,
[mixed
$type = null]] )
Parameters
$name
— string- The name or position of the parameter.
$value
— mixed- The value of the parameter.
$type
— mixed- Either a PDO binding type or a DBAL mapping type name or instance.
Returns
- boolean
- TRUE on success, FALSE on failure.