1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace App\Entity; |
4
|
|
|
|
5
|
|
|
use App\Entity\Attribute\Accessor as EntityAccessor; |
6
|
|
|
use Ds\Component\Locale\Model\Type\Localizable; |
|
|
|
|
7
|
|
|
use Ds\Component\Model\Attribute\Accessor; |
|
|
|
|
8
|
|
|
use Ds\Component\Model\Type\Deletable; |
|
|
|
|
9
|
|
|
use Ds\Component\Model\Type\Identifiable; |
|
|
|
|
10
|
|
|
use Ds\Component\Model\Type\Identitiable; |
|
|
|
|
11
|
|
|
use Ds\Component\Model\Type\Ownable; |
|
|
|
|
12
|
|
|
use Ds\Component\Model\Type\Uuidentifiable; |
|
|
|
|
13
|
|
|
use Ds\Component\Model\Type\Versionable; |
|
|
|
|
14
|
|
|
use Ds\Component\Tenant\Model\Attribute\Accessor as TenantAccessor; |
|
|
|
|
15
|
|
|
use Ds\Component\Tenant\Model\Type\Tenantable; |
|
|
|
|
16
|
|
|
use Ds\Component\Translation\Model\Attribute\Accessor as TranslationAccessor; |
|
|
|
|
17
|
|
|
use Ds\Component\Translation\Model\Type\Translatable; |
|
|
|
|
18
|
|
|
use Knp\DoctrineBehaviors\Model as Behavior; |
|
|
|
|
19
|
|
|
|
20
|
|
|
use ApiPlatform\Core\Annotation\ApiResource; |
|
|
|
|
21
|
|
|
use ApiPlatform\Core\Annotation\ApiProperty; |
|
|
|
|
22
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
|
23
|
|
|
use Ds\Component\Locale\Model\Annotation\Locale; |
|
|
|
|
24
|
|
|
use Ds\Component\Translation\Model\Annotation\Translate; |
|
|
|
|
25
|
|
|
use Symfony\Bridge\Doctrine\Validator\Constraints as ORMAssert; |
|
|
|
|
26
|
|
|
use Symfony\Component\Serializer\Annotation As Serializer; |
|
|
|
|
27
|
|
|
use Symfony\Component\Validator\Constraints as Assert; |
|
|
|
|
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* Class Persona |
31
|
|
|
*/ |
32
|
|
|
abstract class Persona implements Identifiable, Uuidentifiable, Ownable, Identitiable, Translatable, Localizable, Deletable, Versionable, Tenantable |
33
|
|
|
{ |
34
|
|
|
use Behavior\Translatable\Translatable; |
|
|
|
|
35
|
|
|
use Behavior\Timestampable\Timestampable; |
|
|
|
|
36
|
|
|
use Behavior\SoftDeletable\SoftDeletable; |
|
|
|
|
37
|
|
|
|
38
|
|
|
use Accessor\Id; |
|
|
|
|
39
|
|
|
use Accessor\Uuid; |
|
|
|
|
40
|
|
|
use Accessor\Owner; |
|
|
|
|
41
|
|
|
use Accessor\OwnerUuid; |
|
|
|
|
42
|
|
|
use EntityAccessor\Persona\Identity; |
43
|
|
|
use EntityAccessor\Persona\IdentityUuid; |
44
|
|
|
use TranslationAccessor\Title; |
|
|
|
|
45
|
|
|
use Accessor\Data; |
|
|
|
|
46
|
|
|
use Accessor\Deleted; |
|
|
|
|
47
|
|
|
use Accessor\Version; |
|
|
|
|
48
|
|
|
use TenantAccessor\Tenant; |
|
|
|
|
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var integer |
52
|
|
|
* @ApiProperty(identifier=false, writable=false) |
53
|
|
|
* @Serializer\Groups({"persona_output"}) |
54
|
|
|
* @ORM\Id |
55
|
|
|
* @ORM\GeneratedValue(strategy="AUTO") |
56
|
|
|
* @ORM\Column(name="id", type="integer") |
57
|
|
|
*/ |
58
|
|
|
protected $id; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @var string |
62
|
|
|
* @ApiProperty(identifier=true, writable=false) |
63
|
|
|
* @Serializer\Groups({"persona_output"}) |
64
|
|
|
* @ORM\Column(name="uuid", type="guid", unique=true) |
65
|
|
|
* @Assert\Uuid |
66
|
|
|
*/ |
67
|
|
|
protected $uuid; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @var \DateTime |
71
|
|
|
* @ApiProperty(writable=false) |
72
|
|
|
* @Serializer\Groups({"persona_output"}) |
73
|
|
|
*/ |
74
|
|
|
protected $createdAt; |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* @var \DateTime |
78
|
|
|
* @ApiProperty(writable=false) |
79
|
|
|
* @Serializer\Groups({"persona_output"}) |
80
|
|
|
*/ |
81
|
|
|
protected $updatedAt; |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @var \DateTime |
85
|
|
|
* @ApiProperty(writable=false) |
86
|
|
|
* @Serializer\Groups({"persona_output"}) |
87
|
|
|
*/ |
88
|
|
|
protected $deletedAt; |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* @var string |
92
|
|
|
* @ApiProperty |
93
|
|
|
* @Serializer\Groups({"persona_output", "persona_input"}) |
94
|
|
|
* @ORM\Column(name="`owner`", type="string", length=255, nullable=true) |
95
|
|
|
* @Assert\NotBlank |
96
|
|
|
*/ |
97
|
|
|
protected $owner; |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* @var string |
101
|
|
|
* @ApiProperty |
102
|
|
|
* @Serializer\Groups({"persona_output", "persona_input"}) |
103
|
|
|
* @ORM\Column(name="owner_uuid", type="guid", nullable=true) |
104
|
|
|
* @Assert\NotBlank |
105
|
|
|
* @Assert\Uuid |
106
|
|
|
*/ |
107
|
|
|
protected $ownerUuid; |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @var array |
111
|
|
|
* @ApiProperty |
112
|
|
|
* @Serializer\Groups({"persona_output", "persona_input"}) |
113
|
|
|
* @Assert\Type("array") |
114
|
|
|
* @Assert\NotBlank |
115
|
|
|
* @Assert\All({ |
116
|
|
|
* @Assert\NotBlank, |
117
|
|
|
* @Assert\Length(min=1) |
118
|
|
|
* }) |
119
|
|
|
* @Locale |
120
|
|
|
* @Translate |
121
|
|
|
*/ |
122
|
|
|
protected $title; |
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* @var array |
126
|
|
|
* @ApiProperty |
127
|
|
|
* @Serializer\Groups({"persona_output", "persona_input"}) |
128
|
|
|
* @ORM\Column(name="data", type="json_array") |
129
|
|
|
* @Assert\Type("array") |
130
|
|
|
*/ |
131
|
|
|
protected $data; |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* @var integer |
135
|
|
|
* @ApiProperty |
136
|
|
|
* @Serializer\Groups({"persona_output", "persona_input"}) |
137
|
|
|
* @ORM\Column(name="version", type="integer") |
138
|
|
|
* @ORM\Version |
139
|
|
|
* @Assert\NotBlank |
140
|
|
|
* @Assert\Type("integer") |
141
|
|
|
*/ |
142
|
|
|
protected $version; |
143
|
|
|
|
144
|
|
|
/** |
145
|
|
|
* @var string |
146
|
|
|
* @ApiProperty(writable=false) |
147
|
|
|
* @Serializer\Groups({"persona_output"}) |
148
|
|
|
* @ORM\Column(name="tenant", type="guid") |
149
|
|
|
* @Assert\Uuid |
150
|
|
|
*/ |
151
|
|
|
protected $tenant; |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* Constructor |
155
|
|
|
*/ |
156
|
|
|
public function __construct() |
157
|
|
|
{ |
158
|
|
|
$this->title = []; |
159
|
|
|
$this->data = []; |
160
|
|
|
} |
161
|
|
|
} |
162
|
|
|
|
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