mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
fix duplicate
This commit is contained in:
@ -53,19 +53,19 @@ class PapelImpresion extends \CodeIgniter\Entity\Entity
|
||||
"is_deleted" => "int",
|
||||
];
|
||||
|
||||
public function tipologia() : ?PapelImpresionTipologia
|
||||
public function tipologia() : ?array
|
||||
{
|
||||
$m = model(PapelImpresionTipologiaModel::class);
|
||||
return $m->where('papel_impresion_id',$this->attributes["id"])->first();
|
||||
return $m->asArray()->where('papel_impresion_id',$this->attributes["id"])->findAll();
|
||||
}
|
||||
public function maquinas_impresion() : ?MaquinasPapelesImpresionEntity
|
||||
public function maquinas_impresion() : ?array
|
||||
{
|
||||
$m = model(MaquinasPapelesImpresionModel::class);
|
||||
return $m->where('papel_impresion_id',$this->attributes["id"])->first();
|
||||
return $m->asArray()->where('papel_impresion_id',$this->attributes["id"])->findAll();
|
||||
}
|
||||
public function margen() : ?PapelImpresionMargen
|
||||
public function margen() : ?array
|
||||
{
|
||||
$m = model(PapelImpresionMargenModel::class);
|
||||
return $m->where('papel_impresion_id',$this->attributes["id"])->first();
|
||||
return $m->asArray()->where('papel_impresion_id',$this->attributes["id"])->findAll();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user