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 BusinessUnitRole |
24
|
|
|
*/ |
25
|
|
|
abstract class BusinessUnitRole 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\Version; |
|
|
|
|
35
|
|
|
use TenantAccessor\Tenant; |
|
|
|
|
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @var integer |
39
|
|
|
* @ApiProperty(identifier=false, writable=false) |
40
|
|
|
* @Serializer\Groups({"business_unit_role_output"}) |
41
|
|
|
* @ORM\Id |
42
|
|
|
* @ORM\GeneratedValue(strategy="AUTO") |
43
|
|
|
* @ORM\Column(name="id", type="integer") |
44
|
|
|
*/ |
45
|
|
|
protected $id; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @var string |
49
|
|
|
* @ApiProperty(identifier=true, writable=false) |
50
|
|
|
* @Serializer\Groups({"business_unit_role_output"}) |
51
|
|
|
* @ORM\Column(name="uuid", type="guid", unique=true) |
52
|
|
|
* @Assert\Uuid |
53
|
|
|
*/ |
54
|
|
|
protected $uuid; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @var \DateTime |
58
|
|
|
* @ApiProperty(writable=false) |
59
|
|
|
* @Serializer\Groups({"business_unit_role_output"}) |
60
|
|
|
*/ |
61
|
|
|
protected $createdAt; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @var \DateTime |
65
|
|
|
* @ApiProperty(writable=false) |
66
|
|
|
* @Serializer\Groups({"business_unit_role_output"}) |
67
|
|
|
*/ |
68
|
|
|
protected $updatedAt; |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @var string |
72
|
|
|
* @ApiProperty |
73
|
|
|
* @Serializer\Groups({"business_unit_role_output", "business_unit_role_input"}) |
74
|
|
|
* @ORM\Column(name="`owner`", type="string", length=255, nullable=true) |
75
|
|
|
* @Assert\NotBlank |
76
|
|
|
*/ |
77
|
|
|
protected $owner; |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @var string |
81
|
|
|
* @ApiProperty |
82
|
|
|
* @Serializer\Groups({"business_unit_role_output", "business_unit_role_input"}) |
83
|
|
|
* @ORM\Column(name="owner_uuid", type="guid", nullable=true) |
84
|
|
|
* @Assert\NotBlank |
85
|
|
|
* @Assert\Uuid |
86
|
|
|
*/ |
87
|
|
|
protected $ownerUuid; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @var \App\Entity\Role |
91
|
|
|
* @ApiProperty |
92
|
|
|
* @Serializer\Groups({"business_unit_role_output", "business_unit_role_input"}) |
93
|
|
|
* @ORM\ManyToOne(targetEntity="App\Entity\Role") |
94
|
|
|
* @ORM\JoinColumn(name="role_id", referencedColumnName="id") |
95
|
|
|
* @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
96
|
|
|
* @Assert\Valid |
97
|
|
|
*/ |
98
|
|
|
protected $role; |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @var integer |
102
|
|
|
* @ApiProperty |
103
|
|
|
* @Serializer\Groups({"business_unit_role_output", "business_unit_role_input"}) |
104
|
|
|
* @ORM\Column(name="version", type="integer") |
105
|
|
|
* @ORM\Version |
106
|
|
|
* @Assert\NotBlank |
107
|
|
|
* @Assert\Type("integer") |
108
|
|
|
*/ |
109
|
|
|
protected $version; |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @var string |
113
|
|
|
* @ApiProperty(writable=false) |
114
|
|
|
* @Serializer\Groups({"business_unit_role_output"}) |
115
|
|
|
* @ORM\Column(name="tenant", type="guid") |
116
|
|
|
* @Assert\Uuid |
117
|
|
|
*/ |
118
|
|
|
protected $tenant; |
119
|
|
|
} |
120
|
|
|
|
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