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 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...
|
|||
| 7 | |||
| 8 | use ControleOnline\Entity\State; |
||
|
0 ignored issues
–
show
The type
ControleOnline\Entity\State 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 | 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...
|
|||
| 10 | |||
| 11 | /** |
||
| 12 | * PeopleStates |
||
| 13 | */ |
||
| 14 | #[ORM\Table(name: 'people_states')] |
||
| 15 | #[ORM\Index(name: 'people_id', columns: ['people_id'])] |
||
| 16 | #[ORM\UniqueConstraint(name: 'state', columns: ['state_id'])] |
||
| 17 | #[ORM\Entity] |
||
| 18 | |||
| 19 | class PeopleStates |
||
| 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 People |
||
| 31 | */ |
||
| 32 | #[ORM\JoinColumn(name: 'people_id', referencedColumnName: 'id')] |
||
| 33 | #[ORM\ManyToOne(targetEntity: People::class)] |
||
| 34 | private $people; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var State |
||
| 38 | */ |
||
| 39 | #[ORM\JoinColumn(name: 'state_id', referencedColumnName: 'id')] |
||
| 40 | #[ORM\ManyToOne(targetEntity: State::class)] |
||
| 41 | private $state; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get id |
||
| 45 | * |
||
| 46 | * @return integer |
||
| 47 | */ |
||
| 48 | public function getId() |
||
| 49 | { |
||
| 50 | return $this->id; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Set state |
||
| 55 | * |
||
| 56 | * @param State $state |
||
| 57 | * @return PeopleStates |
||
| 58 | */ |
||
| 59 | public function setState(State $state = null) |
||
| 60 | { |
||
| 61 | $this->state = $state; |
||
| 62 | |||
| 63 | return $this; |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Get state |
||
| 68 | * |
||
| 69 | * @return State |
||
| 70 | */ |
||
| 71 | public function getState() |
||
| 72 | { |
||
| 73 | return $this->state; |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Set people |
||
| 78 | * |
||
| 79 | * @param People $people |
||
| 80 | * @return PeopleStates |
||
| 81 | */ |
||
| 82 | public function setPeople(People $people = null) |
||
| 83 | { |
||
| 84 | $this->people = $people; |
||
| 85 | |||
| 86 | return $this; |
||
| 87 | } |
||
| 88 | |||
| 89 | /** |
||
| 90 | * Get people |
||
| 91 | * |
||
| 92 | * @return People |
||
| 93 | */ |
||
| 94 | public function getPeople() |
||
| 95 | { |
||
| 96 | return $this->people; |
||
| 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