mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
feat : add method findByPresupuesto
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user