1 | <?php |
||
2 | |||
3 | namespace ControleOnline\Entity; |
||
4 | |||
5 | use Symfony\Component\Serializer\Attribute\Groups; |
||
0 ignored issues
–
show
|
|||
6 | use ControleOnline\Listener\LogListener; |
||
7 | |||
8 | use Doctrine\ORM\Mapping as ORM; |
||
0 ignored issues
–
show
The type
Doctrine\ORM\Mapping was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
9 | |||
10 | /** |
||
11 | * LanguageCountry |
||
12 | */ |
||
13 | #[ORM\Table(name: 'language_country')] |
||
14 | #[ORM\Index(name: 'country_id', columns: ['country_id'])] |
||
15 | #[ORM\Index(name: 'IDX_F7BE1E3282F1BAF4', columns: ['language_id'])] |
||
16 | #[ORM\UniqueConstraint(name: 'language_id', columns: ['language_id', 'country_id'])] |
||
17 | #[ORM\Entity] |
||
18 | #[ORM\EntityListeners([LogListener::class])] |
||
19 | class LanguageCountry |
||
20 | { |
||
21 | /** |
||
22 | * @var integer |
||
23 | */ |
||
24 | #[ORM\Column(name: 'id', type: 'integer', nullable: false)] |
||
25 | #[ORM\Id] |
||
26 | #[ORM\GeneratedValue(strategy: 'IDENTITY')] |
||
27 | private $id; |
||
28 | |||
29 | /** |
||
30 | * @var Language |
||
31 | */ |
||
32 | #[ORM\JoinColumn(name: 'language_id', referencedColumnName: 'id')] |
||
33 | #[ORM\ManyToOne(targetEntity: Language::class)] |
||
34 | private $language; |
||
35 | |||
36 | /** |
||
37 | * @var Country |
||
38 | */ |
||
39 | #[ORM\JoinColumn(name: 'country_id', referencedColumnName: 'id')] |
||
40 | #[ORM\ManyToOne(targetEntity: Country::class, inversedBy: 'languageCountry')] |
||
41 | private $country; |
||
42 | |||
43 | /** |
||
44 | * Get id |
||
45 | * |
||
46 | * @return integer |
||
47 | */ |
||
48 | public function getId() |
||
49 | { |
||
50 | return $this->id; |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Set language |
||
55 | * |
||
56 | * @param Language $language |
||
57 | * @return LanguageCountry |
||
58 | */ |
||
59 | public function setLanguage(Language $language = null) |
||
60 | { |
||
61 | $this->language = $language; |
||
62 | |||
63 | return $this; |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * Get language |
||
68 | * |
||
69 | * @return Language |
||
70 | */ |
||
71 | public function getLanguage() |
||
72 | { |
||
73 | return $this->language; |
||
74 | } |
||
75 | |||
76 | /** |
||
77 | * Set country |
||
78 | * |
||
79 | * @param Country $country |
||
80 | * @return LanguageCountry |
||
81 | */ |
||
82 | public function setCountry(Country $country = null) |
||
83 | { |
||
84 | $this->country = $country; |
||
85 | |||
86 | return $this; |
||
87 | } |
||
88 | |||
89 | /** |
||
90 | * Get country |
||
91 | * |
||
92 | * @return Country |
||
93 | */ |
||
94 | public function getCountry() |
||
95 | { |
||
96 | return $this->country; |
||
97 | } |
||
98 | } |
||
99 |
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