-
Notifications
You must be signed in to change notification settings - Fork 17
/
Group.php
executable file
·40 lines (35 loc) · 1.2 KB
/
Group.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
declare(strict_types=1);
namespace KejawenLab\Semart\Skeleton\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Blameable\Traits\BlameableEntity;
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\SoftDeleteable\Traits\SoftDeleteableEntity;
use Gedmo\Timestampable\Traits\TimestampableEntity;
use KejawenLab\Semart\Skeleton\Contract\Entity\CodeNameableTrait;
use KejawenLab\Semart\Skeleton\Contract\Entity\PrimaryableTrait;
use KejawenLab\Semart\Skeleton\Query\Searchable;
use KejawenLab\Semart\Skeleton\Query\Sortable;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* @ORM\Table(name="semart_grup", indexes={@ORM\Index(name="semart_grup_search_idx", columns={"kode", "nama"})})
* @ORM\Entity(repositoryClass="KejawenLab\Semart\Skeleton\Repository\GroupRepository")
*
* @Gedmo\SoftDeleteable(fieldName="deletedAt")
*
* @Searchable({"code", "name"})
* @Sortable({"code", "name"})
*
* @UniqueEntity(fields={"code"})
*
* @author Muhamad Surya Iksanudin <surya.iksanudin@gmail.com>
*/
class Group
{
public const SUPER_ADMINISTRATOR_CODE = 'SPRADM';
use BlameableEntity;
use CodeNameableTrait;
use PrimaryableTrait;
use SoftDeleteableEntity;
use TimestampableEntity;
}