Cake\Database\ValueBinder::attachTo PHP Метод

attachTo() публичный Метод

Binds all the stored values in this object to the passed statement.
public attachTo ( Cake\Database\StatementInterface $statement ) : void
$statement Cake\Database\StatementInterface The statement to add parameters to.
Результат void
    public function attachTo($statement)
    {
        $bindings = $this->bindings();
        if (empty($bindings)) {
            return;
        }
        $params = $types = [];
        foreach ($bindings as $b) {
            $statement->bindValue($b['placeholder'], $b['value'], $b['type']);
        }
    }