mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
delete is_deleted field
This commit is contained in:
@ -19,11 +19,12 @@ class ClientePlantillaPreciosModel extends \App\Models\BaseModel
|
||||
protected $useAutoIncrement = true;
|
||||
|
||||
|
||||
protected $allowedFields = ["nombre", "is_deleted", "deleted_at", "created_at", "updated_at"];
|
||||
protected $allowedFields = ["nombre", "deleted_at", "created_at", "updated_at"];
|
||||
protected $returnType = "App\Entities\Clientes\ClientePlantillaPreciosEntity";
|
||||
|
||||
protected $useTimestamps = true;
|
||||
protected $useSoftDeletes = false;
|
||||
protected $useSoftDeletes = true;
|
||||
protected $deletedField = 'deleted_at';
|
||||
|
||||
protected $createdField = "created_at";
|
||||
|
||||
@ -61,7 +62,7 @@ class ClientePlantillaPreciosModel extends \App\Models\BaseModel
|
||||
"t1.id as id, t1.nombre AS nombre"
|
||||
);
|
||||
|
||||
$builder->where('t1.is_deleted', 0);
|
||||
$builder->where('t1.deleted_at', null);
|
||||
|
||||
if (empty($search))
|
||||
return $builder;
|
||||
|
||||
Reference in New Issue
Block a user