Can't edit an attribute in a HABTM association with CakePHP

I used CakePHP 3.0 Bake command to create controllers, models and views. I got a HABTM association but also it has an attribute. I can insert data using the BOM view and the proceso view. But, when I try to edit the time associated with these things I got the message “Record not found in table “bom_proceso” with primary key [‘1’]” so, I changed the view function from the controller

public function view($proceso_id = null, $bom_id=null) {
$bomProceso = $this->BomProceso->get([$procesoID, $bomID], [
'contain' => ['Proceso', 'Bom']
$this->set('bomProceso', $bomProceso);

now I noticed that the view only send one parameter and I don’t know how to change it
This is the view actually

<div class="bomProceso view large-9 medium-8 columns content">
    <h3><?= h($bomProceso->bom_id) ?></h3>
    <table class="vertical-table">
            <th scope="row"><?= __('Proceso') ?></th>
            <td><?= $bomProceso->has('proceso') ? $this->Html->link($bomProceso->proceso->name, ['controller' => 'Proceso', 'action' => 'view', $bomProceso->proceso->proceso_id]) : '' ?></td>
            <th scope="row"><?= __('Bom') ?></th>
            <td><?= $bomProceso->has('bom') ? $this->Html->link($bomProceso->bom->bom_id, ['controller' => 'Bom', 'action' => 'view', $bomProceso->bom->bom_id]) : '' ?></td>
            <th scope="row"><?= __('Time') ?></th>
            <td><?= $this->Number->format($bomProceso->time) ?></td>