1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace App\Entity; |
4
|
|
|
|
5
|
|
|
use App\Entity\Attribute\Accessor; |
6
|
|
|
|
7
|
|
|
use ApiPlatform\Core\Annotation\ApiResource; |
|
|
|
|
8
|
|
|
use ApiPlatform\Core\Annotation\ApiProperty; |
|
|
|
|
9
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
|
10
|
|
|
use Symfony\Bridge\Doctrine\Validator\Constraints as ORMAssert; |
|
|
|
|
11
|
|
|
use Symfony\Component\Serializer\Annotation As Serializer; |
|
|
|
|
12
|
|
|
use Symfony\Component\Validator\Constraints as Assert; |
|
|
|
|
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* Class OrganizationRole |
16
|
|
|
* |
17
|
|
|
* @ApiResource( |
18
|
|
|
* attributes={ |
19
|
|
|
* "normalization_context"={ |
20
|
|
|
* "groups"={"assigned_role_output"} |
21
|
|
|
* }, |
22
|
|
|
* "denormalization_context"={ |
23
|
|
|
* "groups"={"assigned_role_input"} |
24
|
|
|
* }, |
25
|
|
|
* "filters"={ |
26
|
|
|
* "app.organization_role.search", |
27
|
|
|
* "app.organization_role.date", |
28
|
|
|
* "app.organization_role.order" |
29
|
|
|
* } |
30
|
|
|
* } |
31
|
|
|
* ) |
32
|
|
|
* @ORM\Entity(repositoryClass="App\Repository\OrganizationRoleRepository") |
33
|
|
|
* @ORM\Table(name="app_organization_role") |
34
|
|
|
* @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
35
|
|
|
* @ORMAssert\UniqueEntity(fields="uuid") |
36
|
|
|
*/ |
37
|
|
|
class OrganizationRole extends AssignedRole |
38
|
|
|
{ |
39
|
|
|
use Accessor\Organization; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @var \App\Entity\Organization |
43
|
|
|
* @ApiProperty |
44
|
|
|
* @Serializer\Groups({"assigned_role_output", "assigned_role_input"}) |
45
|
|
|
* @ORM\ManyToOne(targetEntity="App\Entity\Organization", inversedBy="roles") |
46
|
|
|
* @ORM\JoinColumn(name="organization_id", referencedColumnName="id") |
47
|
|
|
* @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
48
|
|
|
* @Assert\Valid |
49
|
|
|
*/ |
50
|
|
|
private $organization; |
|
|
|
|
51
|
|
|
} |
52
|
|
|
|
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