mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed APIPlatform test issues which were introduced with the upgrade to api platform core v3.2.6
This commit is contained in:
parent
4b88de9316
commit
aab1dcf8e6
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,7 @@ use ApiPlatform\Doctrine\Orm\Filter\DateFilter;
|
||||||
use ApiPlatform\Doctrine\Orm\Filter\OrderFilter;
|
use ApiPlatform\Doctrine\Orm\Filter\OrderFilter;
|
||||||
use ApiPlatform\Doctrine\Orm\Filter\RangeFilter;
|
use ApiPlatform\Doctrine\Orm\Filter\RangeFilter;
|
||||||
use ApiPlatform\Metadata\ApiFilter;
|
use ApiPlatform\Metadata\ApiFilter;
|
||||||
|
use ApiPlatform\Metadata\ApiProperty;
|
||||||
use ApiPlatform\Metadata\ApiResource;
|
use ApiPlatform\Metadata\ApiResource;
|
||||||
use ApiPlatform\Metadata\Delete;
|
use ApiPlatform\Metadata\Delete;
|
||||||
use ApiPlatform\Metadata\Get;
|
use ApiPlatform\Metadata\Get;
|
||||||
|
@ -147,6 +148,7 @@ class PartLot extends AbstractDBElement implements TimeStampableInterface, Named
|
||||||
#[ORM\ManyToOne(targetEntity: Part::class, inversedBy: 'partLots')]
|
#[ORM\ManyToOne(targetEntity: Part::class, inversedBy: 'partLots')]
|
||||||
#[ORM\JoinColumn(name: 'id_part', nullable: false, onDelete: 'CASCADE')]
|
#[ORM\JoinColumn(name: 'id_part', nullable: false, onDelete: 'CASCADE')]
|
||||||
#[Groups(['part_lot:read:standalone', 'part_lot:write'])]
|
#[Groups(['part_lot:read:standalone', 'part_lot:write'])]
|
||||||
|
#[ApiProperty(writableLink: false)]
|
||||||
protected ?Part $part = null;
|
protected ?Part $part = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -155,6 +157,7 @@ class PartLot extends AbstractDBElement implements TimeStampableInterface, Named
|
||||||
#[ORM\ManyToOne(targetEntity: User::class)]
|
#[ORM\ManyToOne(targetEntity: User::class)]
|
||||||
#[ORM\JoinColumn(name: 'id_owner', onDelete: 'SET NULL')]
|
#[ORM\JoinColumn(name: 'id_owner', onDelete: 'SET NULL')]
|
||||||
#[Groups(['part_lot:read', 'part_lot:write'])]
|
#[Groups(['part_lot:read', 'part_lot:write'])]
|
||||||
|
#[ApiProperty(writableLink: false)]
|
||||||
protected ?User $owner = null;
|
protected ?User $owner = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue