Example #1
0
 /**
  *
  * @param DispoData $DispoData
  * @return array
  */
 public function modificarStockBunchDisponibles($DispoData)
 {
     $key = array('fecha' => $DispoData->getFecha(), 'inventario_id' => $DispoData->getInventarioId(), 'fecha_bunch' => $DispoData->getFechaBunch(), 'proveedor_id' => $DispoData->getProveedorId(), 'producto' => $DispoData->getProducto(), 'variedad_id' => $DispoData->getVariedadId(), 'grado_id' => $DispoData->getGradoId(), 'tallos_x_bunch' => $DispoData->getTallosxBunch(), 'clasifica' => $DispoData->getClasifica());
     $record = array('cantidad_bunch' => $DispoData->getCantidad_bunch(), 'cantidad_bunch_disponible' => $DispoData->getCantidadBunchDisponible());
     $this->getEntityManager()->getConnection()->update($this->table_name, $record, $key);
     return $key;
 }