|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace App\Entity; |
|
4
|
|
|
|
|
5
|
|
|
use App\Entity\Attribute\Accessor as EntityAccessor; |
|
6
|
|
|
use Ds\Component\Model\Attribute\Accessor; |
|
|
|
|
|
|
7
|
|
|
use Ds\Component\Model\Type\Identifiable; |
|
|
|
|
|
|
8
|
|
|
use Ds\Component\Model\Type\Ownable; |
|
|
|
|
|
|
9
|
|
|
use Ds\Component\Model\Type\Uuidentifiable; |
|
|
|
|
|
|
10
|
|
|
use Ds\Component\Model\Type\Versionable; |
|
|
|
|
|
|
11
|
|
|
use Ds\Component\Tenant\Model\Attribute\Accessor as TenantAccessor; |
|
|
|
|
|
|
12
|
|
|
use Ds\Component\Tenant\Model\Type\Tenantable; |
|
|
|
|
|
|
13
|
|
|
use Knp\DoctrineBehaviors\Model as Behavior; |
|
|
|
|
|
|
14
|
|
|
|
|
15
|
|
|
use ApiPlatform\Core\Annotation\ApiResource; |
|
|
|
|
|
|
16
|
|
|
use ApiPlatform\Core\Annotation\ApiProperty; |
|
|
|
|
|
|
17
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
|
|
|
18
|
|
|
use Symfony\Bridge\Doctrine\Validator\Constraints as ORMAssert; |
|
|
|
|
|
|
19
|
|
|
use Symfony\Component\Serializer\Annotation As Serializer; |
|
|
|
|
|
|
20
|
|
|
use Symfony\Component\Validator\Constraints as Assert; |
|
|
|
|
|
|
21
|
|
|
|
|
22
|
|
|
/** |
|
23
|
|
|
* Class AssignedRole |
|
24
|
|
|
*/ |
|
25
|
|
|
abstract class AssignedRole implements Identifiable, Uuidentifiable, Ownable, Versionable, Tenantable |
|
26
|
|
|
{ |
|
27
|
|
|
use Behavior\Timestampable\Timestampable; |
|
|
|
|
|
|
28
|
|
|
|
|
29
|
|
|
use Accessor\Id; |
|
|
|
|
|
|
30
|
|
|
use Accessor\Uuid; |
|
|
|
|
|
|
31
|
|
|
use Accessor\Owner; |
|
|
|
|
|
|
32
|
|
|
use Accessor\OwnerUuid; |
|
|
|
|
|
|
33
|
|
|
use EntityAccessor\Role; |
|
34
|
|
|
use Accessor\EntityUuids; |
|
|
|
|
|
|
35
|
|
|
use Accessor\Version; |
|
|
|
|
|
|
36
|
|
|
use TenantAccessor\Tenant; |
|
|
|
|
|
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* @var integer |
|
40
|
|
|
* @ApiProperty(identifier=false, writable=false) |
|
41
|
|
|
* @Serializer\Groups({"assigned_role_output"}) |
|
42
|
|
|
* @ORM\Id |
|
43
|
|
|
* @ORM\GeneratedValue(strategy="AUTO") |
|
44
|
|
|
* @ORM\Column(name="id", type="integer") |
|
45
|
|
|
*/ |
|
46
|
|
|
protected $id; |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* @var string |
|
50
|
|
|
* @ApiProperty(identifier=true, writable=false) |
|
51
|
|
|
* @Serializer\Groups({"assigned_role_output"}) |
|
52
|
|
|
* @ORM\Column(name="uuid", type="guid", unique=true) |
|
53
|
|
|
* @Assert\Uuid |
|
54
|
|
|
*/ |
|
55
|
|
|
protected $uuid; |
|
56
|
|
|
|
|
57
|
|
|
/** |
|
58
|
|
|
* @var \DateTime |
|
59
|
|
|
* @ApiProperty(writable=false) |
|
60
|
|
|
* @Serializer\Groups({"assigned_role_output"}) |
|
61
|
|
|
*/ |
|
62
|
|
|
protected $createdAt; |
|
63
|
|
|
|
|
64
|
|
|
/** |
|
65
|
|
|
* @var \DateTime |
|
66
|
|
|
* @ApiProperty(writable=false) |
|
67
|
|
|
* @Serializer\Groups({"assigned_role_output"}) |
|
68
|
|
|
*/ |
|
69
|
|
|
protected $updatedAt; |
|
70
|
|
|
|
|
71
|
|
|
/** |
|
72
|
|
|
* @var string |
|
73
|
|
|
* @ApiProperty |
|
74
|
|
|
* @Serializer\Groups({"assigned_role_output", "assigned_role_input"}) |
|
75
|
|
|
* @ORM\Column(name="`owner`", type="string", length=255, nullable=true) |
|
76
|
|
|
* @Assert\NotBlank |
|
77
|
|
|
*/ |
|
78
|
|
|
protected $owner; |
|
79
|
|
|
|
|
80
|
|
|
/** |
|
81
|
|
|
* @var string |
|
82
|
|
|
* @ApiProperty |
|
83
|
|
|
* @Serializer\Groups({"assigned_role_output", "assigned_role_input"}) |
|
84
|
|
|
* @ORM\Column(name="owner_uuid", type="guid", nullable=true) |
|
85
|
|
|
* @Assert\NotBlank |
|
86
|
|
|
* @Assert\Uuid |
|
87
|
|
|
*/ |
|
88
|
|
|
protected $ownerUuid; |
|
89
|
|
|
|
|
90
|
|
|
/** |
|
91
|
|
|
* @var \App\Entity\Role |
|
92
|
|
|
* @ApiProperty |
|
93
|
|
|
* @Serializer\Groups({"assigned_role_output", "assigned_role_input"}) |
|
94
|
|
|
* @ORM\ManyToOne(targetEntity="App\Entity\Role") |
|
95
|
|
|
* @ORM\JoinColumn(name="role_id", referencedColumnName="id") |
|
96
|
|
|
* @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
|
97
|
|
|
* @Assert\Valid |
|
98
|
|
|
*/ |
|
99
|
|
|
protected $role; |
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* @var string |
|
103
|
|
|
* @Serializer\Groups({"assigned_role_output", "assigned_role_input"}) |
|
104
|
|
|
* @ORM\Column(name="entity_uuids", type="json_array") |
|
105
|
|
|
*/ |
|
106
|
|
|
protected $entityUuids; |
|
107
|
|
|
|
|
108
|
|
|
/** |
|
109
|
|
|
* @var integer |
|
110
|
|
|
* @ApiProperty |
|
111
|
|
|
* @Serializer\Groups({"assigned_role_output", "assigned_role_input"}) |
|
112
|
|
|
* @ORM\Column(name="version", type="integer") |
|
113
|
|
|
* @ORM\Version |
|
114
|
|
|
* @Assert\NotBlank |
|
115
|
|
|
* @Assert\Type("integer") |
|
116
|
|
|
*/ |
|
117
|
|
|
protected $version; |
|
118
|
|
|
|
|
119
|
|
|
/** |
|
120
|
|
|
* @var string |
|
121
|
|
|
* @ApiProperty(writable=false) |
|
122
|
|
|
* @Serializer\Groups({"assigned_role_output"}) |
|
123
|
|
|
* @ORM\Column(name="tenant", type="guid") |
|
124
|
|
|
* @Assert\Uuid |
|
125
|
|
|
*/ |
|
126
|
|
|
protected $tenant; |
|
127
|
|
|
|
|
128
|
|
|
/** |
|
129
|
|
|
* Constructor |
|
130
|
|
|
*/ |
|
131
|
|
|
public function __construct() |
|
132
|
|
|
{ |
|
133
|
|
|
$this->entityUuids = []; |
|
|
|
|
|
|
134
|
|
|
} |
|
135
|
|
|
} |
|
136
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths