1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace ControleOnline\Entity; |
4
|
|
|
|
5
|
|
|
use Symfony\Component\Serializer\Attribute\Groups; |
|
|
|
|
6
|
|
|
use People; |
|
|
|
|
7
|
|
|
use Role; |
|
|
|
|
8
|
|
|
use ControleOnline\Listener\LogListener; |
|
|
|
|
9
|
|
|
|
10
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
|
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* PeopleRole |
14
|
|
|
*/ |
15
|
|
|
#[ORM\Table(name: 'people_role')] |
16
|
|
|
#[ORM\Index(name: 'people_id', columns: ['people_id'])] |
17
|
|
|
#[ORM\Index(name: 'role_id', columns: ['role_id'])] |
18
|
|
|
#[ORM\Index(name: 'IDX_55A046DA979B1AD6', columns: ['company_id'])] |
19
|
|
|
#[ORM\UniqueConstraint(name: 'company_id', columns: ['company_id', 'people_id', 'role_id'])] |
20
|
|
|
#[ORM\Entity] |
21
|
|
|
#[ORM\EntityListeners([LogListener::class])] |
22
|
|
|
class PeopleRole |
23
|
|
|
{ |
24
|
|
|
/** |
25
|
|
|
* @var int |
26
|
|
|
*/ |
27
|
|
|
#[ORM\Column(name: 'id', type: 'integer', nullable: false)] |
28
|
|
|
#[ORM\Id] |
29
|
|
|
#[ORM\GeneratedValue(strategy: 'IDENTITY')] |
30
|
|
|
private $id; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var People |
34
|
|
|
*/ |
35
|
|
|
#[ORM\JoinColumn(name: 'company_id', referencedColumnName: 'id')] |
36
|
|
|
#[ORM\ManyToOne(targetEntity: People::class)] |
37
|
|
|
private $company; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var People |
41
|
|
|
*/ |
42
|
|
|
#[ORM\JoinColumn(name: 'people_id', referencedColumnName: 'id')] |
43
|
|
|
#[ORM\ManyToOne(targetEntity: People::class)] |
44
|
|
|
private $people; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var Role |
48
|
|
|
*/ |
49
|
|
|
#[ORM\JoinColumn(name: 'role_id', referencedColumnName: 'id')] |
50
|
|
|
#[ORM\ManyToOne(targetEntity: Role::class)] |
51
|
|
|
private $role; |
52
|
|
|
|
53
|
|
|
|
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* Get the value of id |
57
|
|
|
*/ |
58
|
|
|
public function getId() |
59
|
|
|
{ |
60
|
|
|
return $this->id; |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
|
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* Get the value of company |
67
|
|
|
*/ |
68
|
|
|
public function getCompany(): \ControleOnline\Entity\People |
69
|
|
|
{ |
70
|
|
|
return $this->company; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* Set the value of company |
75
|
|
|
*/ |
76
|
|
|
public function setCompany(\ControleOnline\Entity\People $company): self |
77
|
|
|
{ |
78
|
|
|
$this->company = $company; |
|
|
|
|
79
|
|
|
|
80
|
|
|
return $this; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* Get the value of people |
85
|
|
|
*/ |
86
|
|
|
public function getPeople(): \ControleOnline\Entity\People |
87
|
|
|
{ |
88
|
|
|
return $this->people; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* Set the value of people |
93
|
|
|
*/ |
94
|
|
|
public function setPeople(\ControleOnline\Entity\People $people): self |
95
|
|
|
{ |
96
|
|
|
$this->people = $people; |
|
|
|
|
97
|
|
|
|
98
|
|
|
return $this; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* Get the value of role |
103
|
|
|
*/ |
104
|
|
|
public function getRole(): \ControleOnline\Entity\Role |
|
|
|
|
105
|
|
|
{ |
106
|
|
|
return $this->role; |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* Set the value of role |
111
|
|
|
*/ |
112
|
|
|
public function setRole(\ControleOnline\Entity\Role $role): self |
113
|
|
|
{ |
114
|
|
|
$this->role = $role; |
115
|
|
|
|
116
|
|
|
return $this; |
117
|
|
|
} |
118
|
|
|
} |
119
|
|
|
|
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