Example #1
0
 /**
  * Modificar
  *
  * @param DispoData $DispoData
  * @return array Retorna un Array $key el cual contiene el id
  */
 public function modificar(DispoData $DispoData)
 {
     $key = array('id' => $DispoData->getId());
     $record = array('id' => $DispoData->getId(), '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->getgetTallosxBunch(), 'clasifica' => $DispoData->getClasifica(), 'cantidad_bunch' => $DispoData->getgetCantidadBunch(), 'cantidad_bunch_disponible' => $DispoData->getCantidadBunchDisponible());
     $this->getEntityManager()->getConnection()->update($this->table_name, $record, $key);
     return $DispoData->getId();
 }