mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Unificada entidad de usuarios a UserEntity
This commit is contained in:
@ -1,11 +1,9 @@
|
||||
<?php
|
||||
namespace App\Entities\Usuarios;
|
||||
|
||||
use App\Entities\Chat\ChatNotificationEntity;
|
||||
use App\Models\ChatNotification;
|
||||
use CodeIgniter\Entity;
|
||||
use CodeIgniter\Shield\Entities\User;
|
||||
|
||||
class UserEntity extends \CodeIgniter\Entity\Entity
|
||||
class UserEntity extends User
|
||||
{
|
||||
protected $attributes = [
|
||||
"id" => null,
|
||||
@ -20,7 +18,6 @@ class UserEntity extends \CodeIgniter\Entity\Entity
|
||||
"created_at" => null,
|
||||
"updated_at" => null,
|
||||
"deleted_at" => null,
|
||||
|
||||
];
|
||||
protected $casts = [
|
||||
"id" => "int",
|
||||
@ -73,4 +70,6 @@ class UserEntity extends \CodeIgniter\Entity\Entity
|
||||
$m = model(ChatNotification::class);
|
||||
return $m->where('user_id',$this->attributes['id'])->findAll() ?? [];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user