public function attachTo($statement)
    {
        $bindings = $this->bindings();
        if (empty($bindings)) {
            return;
        }

        foreach ($bindings as $b) {
            $statement->bindValue($b['placeholder'], $b['value'], $b['type']);
        }
    }
public function attachTo($statement)
    {
        $bindings = $this->bindings();
        if (empty($bindings)) {
            return;
        }

        foreach ($bindings as $b) {
            $statement->bindValue($b['placeholder'], $b['value'], $b['type']);
        }
    }
public function attachTo ( $ statement ) { $ bindings = $ this -> bindings ( ) ; if ( empty ( $ bindings ) ) { return ; } foreach ( $ bindings as $ b ) { $ statement -> bindValue ( $ b [ 'placeholder' ] , $ b [ 'value' ] , $ b [ 'type' ] ) ; } }
Binds all the stored values in this object to the passed statement.

@param \Cake\Database\StatementInterface $statement The statement to add parameters to.
@return void
Binds all the stored values in this object to the passed statement .