trabajando en servicios encuadernacion (init)

This commit is contained in:
2023-11-21 20:36:12 +01:00
parent 58af5bf90f
commit 1d0681847a
17 changed files with 174 additions and 18 deletions

View File

@ -0,0 +1,46 @@
<?php
namespace App\Models\Tarifas;
class TarifaEncuadernacionDimensionesModel extends \App\Models\GoBaseModel
{
protected $table = "tarifa_encuadernacion_dimensiones";
/**
* Whether primary key uses auto increment.
*
* @var bool
*/
protected $useAutoIncrement = true;
protected $allowedFields = [
];
protected $returnType = "App\Entities\Tarifas\TarifaEncuadernacionDimensionesEntity";
public static $labelField = "descripcion";
protected $validationRules = [
];
protected $validationMessages = [
];
/**
* Get resource data.
*
* @param string $search
*
* @return \CodeIgniter\Database\BaseBuilder
*/
public function getDimensiones(){
$builder = $this->db
->table($this->table . " t1")
->select("t1.id AS value, t1.keyword AS label")
->orderBy('t1.id', 'asc');
return $builder->get()->getResultObject();
}
}