1 | <?php |
||
2 | |||
3 | namespace Doctrine\Tests\Models\DDC2372; |
||
4 | |||
5 | /** @Entity @Table(name="addresses") */ |
||
6 | class DDC2372Address |
||
7 | { |
||
8 | /** |
||
9 | * @Id @Column(type="integer") |
||
10 | * @GeneratedValue(strategy="AUTO") |
||
11 | */ |
||
12 | private $id; |
||
13 | /** @Column(type="string", length=255) */ |
||
14 | private $street; |
||
15 | /** @OneToOne(targetEntity="User", mappedBy="address") */ |
||
16 | private $user; |
||
17 | |||
18 | public function getId() |
||
19 | { |
||
20 | return $this->id; |
||
21 | } |
||
22 | |||
23 | public function getStreet() |
||
24 | { |
||
25 | return $this->street; |
||
26 | } |
||
27 | |||
28 | public function setStreet($street) |
||
29 | { |
||
30 | $this->street = $street; |
||
31 | } |
||
32 | |||
33 | public function getUser() |
||
34 | { |
||
35 | return $this->user; |
||
36 | } |
||
37 | |||
38 | public function setUser(User $user) |
||
0 ignored issues
–
show
|
|||
39 | { |
||
40 | if ($this->user !== $user) { |
||
41 | $this->user = $user; |
||
42 | $user->setAddress($this); |
||
43 | } |
||
44 | } |
||
45 | } |
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