ControleOnline /
api-platform-people
| 1 | <?php |
||
| 2 | |||
| 3 | namespace ControleOnline\Entity; |
||
| 4 | |||
| 5 | use Symfony\Component\Serializer\Attribute\Groups; |
||
|
0 ignored issues
–
show
|
|||
| 6 | use People; |
||
|
0 ignored issues
–
show
The type
People 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 Loading history...
This use statement conflicts with another class in this namespace,
ControleOnline\Entity\People. Consider defining an alias.
Let?s assume that you have a directory layout like this: .
|-- OtherDir
| |-- Bar.php
| `-- Foo.php
`-- SomeDir
`-- Foo.php
and let?s assume the following content of // Bar.php
namespace OtherDir;
use SomeDir\Foo; // This now conflicts the class OtherDir\Foo
If both files PHP Fatal error: Cannot use SomeDir\Foo as Foo because the name is already in use in OtherDir/Foo.php
However, as // Bar.php
namespace OtherDir;
use SomeDir\Foo as SomeDirFoo; // There is no conflict anymore.
Loading history...
|
|||
| 7 | use Role; |
||
|
0 ignored issues
–
show
The type
Role 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 Loading history...
|
|||
| 8 | use ControleOnline\Listener\LogListener; |
||
|
0 ignored issues
–
show
The type
ControleOnline\Listener\LogListener 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 Loading history...
|
|||
| 9 | |||
| 10 | 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 Loading history...
|
|||
| 11 | |||
| 12 | /** |
||
| 13 | * PeopleRole |
||
| 14 | */ |
||
| 15 | #[ORM\Table(name: 'people_role')] |
||
| 16 | #[ORM\Index(name: 'people_id', columns: ['people_id'])] |
||
| 17 | #[ORM\Index(name: 'role_id', columns: ['role_id'])] |
||
| 18 | #[ORM\Index(name: 'IDX_55A046DA979B1AD6', columns: ['company_id'])] |
||
| 19 | #[ORM\UniqueConstraint(name: 'company_id', columns: ['company_id', 'people_id', 'role_id'])] |
||
| 20 | #[ORM\Entity] |
||
| 21 | |||
| 22 | class PeopleRole |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | #[ORM\Column(name: 'id', type: 'integer', nullable: false)] |
||
| 28 | #[ORM\Id] |
||
| 29 | #[ORM\GeneratedValue(strategy: 'IDENTITY')] |
||
| 30 | private $id; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var People |
||
| 34 | */ |
||
| 35 | #[ORM\JoinColumn(name: 'company_id', referencedColumnName: 'id')] |
||
| 36 | #[ORM\ManyToOne(targetEntity: People::class)] |
||
| 37 | private $company; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var People |
||
| 41 | */ |
||
| 42 | #[ORM\JoinColumn(name: 'people_id', referencedColumnName: 'id')] |
||
| 43 | #[ORM\ManyToOne(targetEntity: People::class)] |
||
| 44 | private $people; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @var Role |
||
| 48 | */ |
||
| 49 | #[ORM\JoinColumn(name: 'role_id', referencedColumnName: 'id')] |
||
| 50 | #[ORM\ManyToOne(targetEntity: Role::class)] |
||
| 51 | private $role; |
||
| 52 | |||
| 53 | |||
| 54 | |||
| 55 | /** |
||
| 56 | * Get the value of id |
||
| 57 | */ |
||
| 58 | public function getId() |
||
| 59 | { |
||
| 60 | return $this->id; |
||
| 61 | } |
||
| 62 | |||
| 63 | |||
| 64 | |||
| 65 | /** |
||
| 66 | * Get the value of company |
||
| 67 | */ |
||
| 68 | public function getCompany(): \ControleOnline\Entity\People |
||
| 69 | { |
||
| 70 | return $this->company; |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Set the value of company |
||
| 75 | */ |
||
| 76 | public function setCompany(\ControleOnline\Entity\People $company): self |
||
| 77 | { |
||
| 78 | $this->company = $company; |
||
|
0 ignored issues
–
show
It seems like
$company of type ControleOnline\Entity\People is incompatible with the declared type People of property $company.
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property. Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property.. Loading history...
|
|||
| 79 | |||
| 80 | return $this; |
||
| 81 | } |
||
| 82 | |||
| 83 | /** |
||
| 84 | * Get the value of people |
||
| 85 | */ |
||
| 86 | public function getPeople(): \ControleOnline\Entity\People |
||
| 87 | { |
||
| 88 | return $this->people; |
||
| 89 | } |
||
| 90 | |||
| 91 | /** |
||
| 92 | * Set the value of people |
||
| 93 | */ |
||
| 94 | public function setPeople(\ControleOnline\Entity\People $people): self |
||
| 95 | { |
||
| 96 | $this->people = $people; |
||
|
0 ignored issues
–
show
It seems like
$people of type ControleOnline\Entity\People is incompatible with the declared type People of property $people.
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property. Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property.. Loading history...
|
|||
| 97 | |||
| 98 | return $this; |
||
| 99 | } |
||
| 100 | |||
| 101 | /** |
||
| 102 | * Get the value of role |
||
| 103 | */ |
||
| 104 | public function getRole(): \ControleOnline\Entity\Role |
||
|
0 ignored issues
–
show
The type
ControleOnline\Entity\Role 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 Loading history...
|
|||
| 105 | { |
||
| 106 | return $this->role; |
||
| 107 | } |
||
| 108 | |||
| 109 | /** |
||
| 110 | * Set the value of role |
||
| 111 | */ |
||
| 112 | public function setRole(\ControleOnline\Entity\Role $role): self |
||
| 113 | { |
||
| 114 | $this->role = $role; |
||
| 115 | |||
| 116 | return $this; |
||
| 117 | } |
||
| 118 | } |
||
| 119 |
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