feat : add method findByPresupuesto

This commit is contained in:
amazuecos
2024-09-02 23:31:50 +02:00
parent 68f2ccb1c5
commit ebe649c7d8

View File

@ -216,5 +216,10 @@ class PedidoLineaModel extends \App\Models\BaseModel
return $resultaArray;
}
public function findByPresupuesto(int $presupuestoId){
$builder = $this->db
->table($this->table)
->select();
return $builder->where('presupuesto_id',$presupuestoId)->get()->getFirstRow();
}
}