Trabajando

This commit is contained in:
Jaime Jimenez
2023-08-16 19:44:00 +02:00
parent 3b84839fc0
commit d8afcf9c32
9 changed files with 158 additions and 87 deletions

View File

@ -205,9 +205,9 @@ class ProveedorModel extends \App\Models\GoBaseModel
$builder = $this->db
->table($this->table . " t1")
->select(
"t1.id AS proveedor_id, t1.nombre AS proveedor")
"t1.id AS value, t1.nombre AS label")
->where("tipo_id", $tipoId);
return $builder->getResult('array');
return $builder->get()->getResultObject();
}
}