1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace ControleOnline\Entity; |
4
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
|
6
|
|
|
use ControleOnline\Entity\Orders; |
|
|
|
|
7
|
|
|
|
8
|
|
|
use ApiPlatform\Core\Annotation\ApiResource; |
|
|
|
|
9
|
|
|
use Symfony\Component\Serializer\Annotation\Groups; |
|
|
|
|
10
|
|
|
use ApiPlatform\Core\Annotation\ApiFilter; |
|
|
|
|
11
|
|
|
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter; |
|
|
|
|
12
|
|
|
|
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* @ORM\EntityListeners({ControleOnline\Listener\LogListener::class}) |
16
|
|
|
* @ApiResource( |
17
|
|
|
* attributes={ |
18
|
|
|
* "formats"={"jsonld", "json", "html", "jsonhal", "csv"={"text/csv"}}, |
19
|
|
|
* "access_control"="is_granted('ROLE_CLIENT')" |
20
|
|
|
* }, |
21
|
|
|
* normalizationContext ={"groups"={"order_product_queue:read"}}, |
22
|
|
|
* denormalizationContext={"groups"={"order_product_queue:write"}}, |
23
|
|
|
* attributes ={"access_control"="is_granted('ROLE_CLIENT')"}, |
24
|
|
|
* collectionOperations ={ |
25
|
|
|
* "get" ={ |
26
|
|
|
* "access_control"="is_granted('ROLE_CLIENT')", |
27
|
|
|
* }, |
28
|
|
|
* }, |
29
|
|
|
* itemOperations ={ |
30
|
|
|
* "get" ={ |
31
|
|
|
* "access_control"="is_granted('ROLE_CLIENT')", |
32
|
|
|
* }, |
33
|
|
|
* "put" ={ |
34
|
|
|
* "access_control"="is_granted('ROLE_CLIENT')", |
35
|
|
|
* }, |
36
|
|
|
* "delete" ={ |
37
|
|
|
* "access_control"="is_granted('ROLE_CLIENT')", |
38
|
|
|
* }, |
39
|
|
|
* } |
40
|
|
|
* ) |
41
|
|
|
* @ORM\Table(name="order_product_queue", indexes={@ORM\Index(name="status_id", columns={"status_id"}), @ORM\Index(name="queue_id", columns={"queue_id"}), @ORM\Index(name="people_id", columns={"order_id"})}) |
42
|
|
|
* @ORM\Entity |
43
|
|
|
*/ |
44
|
|
|
|
45
|
|
|
|
46
|
|
|
class OrderProductQueue |
47
|
|
|
{ |
48
|
|
|
/** |
49
|
|
|
* @var int |
50
|
|
|
* |
51
|
|
|
* @ORM\Column(name="id", type="integer", nullable=false) |
52
|
|
|
* @ORM\Id |
53
|
|
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
54
|
|
|
* @Groups({"order:read","order_details:read","order:write","order_product_queue:read", "order_product_queue:write"}) |
55
|
|
|
*/ |
56
|
|
|
private $id; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var string |
60
|
|
|
* |
61
|
|
|
* @ORM\Column(name="priority", type="string", length=0, nullable=false) |
62
|
|
|
* @Groups({"order:read","order_details:read","order:write","order_product_queue:read", "order_product_queue:write"}) |
63
|
|
|
*/ |
64
|
|
|
private $priority; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @var \DateTime |
68
|
|
|
* |
69
|
|
|
* @ORM\Column(name="register_time", type="datetime", nullable=false, options={"default"="current_timestamp()"}) |
70
|
|
|
* @Groups({"order:read","order_details:read","order:write","order_product_queue:read", "order_product_queue:write"}) |
71
|
|
|
*/ |
72
|
|
|
private $registerTime = 'current_timestamp()'; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @var \DateTime |
76
|
|
|
* |
77
|
|
|
* @ORM\Column(name="update_time", type="datetime", nullable=false, options={"default"="current_timestamp()"}) |
78
|
|
|
* @Groups({"order:read","order_details:read","order:write","order_product_queue:read", "order_product_queue:write"}) |
79
|
|
|
*/ |
80
|
|
|
private $updateTime = 'current_timestamp()'; |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @var Orders |
84
|
|
|
* |
85
|
|
|
* @ORM\ManyToOne(targetEntity="Order") |
86
|
|
|
* @ORM\JoinColumns({ |
87
|
|
|
* @ORM\JoinColumn(name="order_id", referencedColumnName="id") |
88
|
|
|
* }) |
89
|
|
|
* @Groups({"order_product_queue:read", "order_product_queue:write"}) |
90
|
|
|
*/ |
91
|
|
|
private $order; |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @var ControleOnline\Entity\Status |
|
|
|
|
95
|
|
|
* |
96
|
|
|
* @ORM\ManyToOne(targetEntity="ControleOnline\Entity\Status") |
97
|
|
|
* @ORM\JoinColumns({ |
98
|
|
|
* @ORM\JoinColumn(name="status_id", referencedColumnName="id") |
99
|
|
|
* }) |
100
|
|
|
* @Groups({"order:read","order_details:read","order:write","order_product_queue:read", "order_product_queue:write"}) |
101
|
|
|
*/ |
102
|
|
|
private $status; |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @var \Queue |
|
|
|
|
106
|
|
|
* |
107
|
|
|
* @ORM\ManyToOne(targetEntity="Queue") |
108
|
|
|
* @ORM\JoinColumns({ |
109
|
|
|
* @ORM\JoinColumn(name="queue_id", referencedColumnName="id") |
110
|
|
|
* }) |
111
|
|
|
* @Groups({"order:read","order_details:read","order:write","order_product_queue:read", "order_product_queue:write"}) |
112
|
|
|
*/ |
113
|
|
|
private $queue; |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* Get the value of id |
117
|
|
|
*/ |
118
|
|
|
public function getId() |
119
|
|
|
{ |
120
|
|
|
return $this->id; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* Set the value of id |
125
|
|
|
*/ |
126
|
|
|
public function setId($id): self |
127
|
|
|
{ |
128
|
|
|
$this->id = $id; |
129
|
|
|
|
130
|
|
|
return $this; |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* Get the value of priority |
135
|
|
|
*/ |
136
|
|
|
public function getPriority() |
137
|
|
|
{ |
138
|
|
|
return $this->priority; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* Set the value of priority |
143
|
|
|
*/ |
144
|
|
|
public function setPriority($priority): self |
145
|
|
|
{ |
146
|
|
|
$this->priority = $priority; |
147
|
|
|
|
148
|
|
|
return $this; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* Get the value of registerTime |
153
|
|
|
*/ |
154
|
|
|
public function getRegisterTime() |
155
|
|
|
{ |
156
|
|
|
return $this->registerTime; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* Set the value of registerTime |
161
|
|
|
*/ |
162
|
|
|
public function setRegisterTime($registerTime): self |
163
|
|
|
{ |
164
|
|
|
$this->registerTime = $registerTime; |
165
|
|
|
|
166
|
|
|
return $this; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* Get the value of updateTime |
171
|
|
|
*/ |
172
|
|
|
public function getUpdateTime() |
173
|
|
|
{ |
174
|
|
|
return $this->updateTime; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* Set the value of updateTime |
179
|
|
|
*/ |
180
|
|
|
public function setUpdateTime($updateTime): self |
181
|
|
|
{ |
182
|
|
|
$this->updateTime = $updateTime; |
183
|
|
|
|
184
|
|
|
return $this; |
185
|
|
|
} |
186
|
|
|
|
187
|
|
|
/** |
188
|
|
|
* Get the value of order |
189
|
|
|
*/ |
190
|
|
|
public function getOrder() |
191
|
|
|
{ |
192
|
|
|
return $this->order; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* Set the value of order |
197
|
|
|
*/ |
198
|
|
|
public function setOrder($order): self |
199
|
|
|
{ |
200
|
|
|
$this->order = $order; |
201
|
|
|
|
202
|
|
|
return $this; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* Get the value of status |
207
|
|
|
*/ |
208
|
|
|
public function getStatus() |
209
|
|
|
{ |
210
|
|
|
return $this->status; |
211
|
|
|
} |
212
|
|
|
|
213
|
|
|
/** |
214
|
|
|
* Set the value of status |
215
|
|
|
*/ |
216
|
|
|
public function setStatus($status): self |
217
|
|
|
{ |
218
|
|
|
$this->status = $status; |
219
|
|
|
|
220
|
|
|
return $this; |
221
|
|
|
} |
222
|
|
|
|
223
|
|
|
/** |
224
|
|
|
* Get the value of queue |
225
|
|
|
*/ |
226
|
|
|
public function getQueue() |
227
|
|
|
{ |
228
|
|
|
return $this->queue; |
229
|
|
|
} |
230
|
|
|
|
231
|
|
|
/** |
232
|
|
|
* Set the value of queue |
233
|
|
|
*/ |
234
|
|
|
public function setQueue($queue): self |
235
|
|
|
{ |
236
|
|
|
$this->queue = $queue; |
237
|
|
|
|
238
|
|
|
return $this; |
239
|
|
|
} |
240
|
|
|
} |
241
|
|
|
|
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