DigitalState /
Assets
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Entity; |
||
| 4 | |||
| 5 | use Ds\Component\Association\Entity\Association; |
||
|
0 ignored issues
–
show
|
|||
| 6 | use App\Entity\Attribute\Accessor; |
||
| 7 | |||
| 8 | use ApiPlatform\Core\Annotation\ApiResource; |
||
|
0 ignored issues
–
show
The type
ApiPlatform\Core\Annotation\ApiResource 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 ApiPlatform\Core\Annotation\ApiProperty; |
||
|
0 ignored issues
–
show
The type
ApiPlatform\Core\Annotation\ApiProperty 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 | 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 | use Symfony\Bridge\Doctrine\Validator\Constraints as ORMAssert; |
||
|
0 ignored issues
–
show
The type
Symfony\Bridge\Doctrine\Validator\Constraints 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...
|
|||
| 12 | use Symfony\Component\Serializer\Annotation as Serializer; |
||
|
0 ignored issues
–
show
The type
Symfony\Component\Serializer\Annotation 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...
|
|||
| 13 | use Symfony\Component\Validator\Constraints as Assert; |
||
|
0 ignored issues
–
show
The type
Symfony\Component\Validator\Constraints 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...
|
|||
| 14 | |||
| 15 | /** |
||
| 16 | * Class AssetAssociation |
||
| 17 | * |
||
| 18 | * @ApiResource( |
||
| 19 | * attributes={ |
||
| 20 | * "normalization_context"={ |
||
| 21 | * "groups"={"association_output"} |
||
| 22 | * }, |
||
| 23 | * "denormalization_context"={ |
||
| 24 | * "groups"={"association_input"} |
||
| 25 | * }, |
||
| 26 | * "filters"={ |
||
| 27 | * "app.asset_association.search", |
||
| 28 | * "app.asset_association.date" |
||
| 29 | * } |
||
| 30 | * } |
||
| 31 | * ) |
||
| 32 | * @ORM\Entity(repositoryClass="App\Repository\AssetAssociationRepository") |
||
| 33 | * @ORM\Table(name="app_asset_association") |
||
| 34 | * @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
||
| 35 | */ |
||
| 36 | class AssetAssociation extends Association |
||
| 37 | { |
||
| 38 | use Accessor\Asset; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @var \App\Entity\Asset |
||
| 42 | * @ApiProperty |
||
| 43 | * @Serializer\Groups({"association_output", "association_input"}) |
||
| 44 | * @ORM\ManyToOne(targetEntity="App\Entity\Asset", inversedBy="associations") |
||
| 45 | * @ORM\JoinColumn(name="asset_id", referencedColumnName="id") |
||
| 46 | * @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
||
| 47 | * @Assert\Valid |
||
| 48 | */ |
||
| 49 | private $asset; |
||
|
0 ignored issues
–
show
|
|||
| 50 | } |
||
| 51 |
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