Show lots, order and pricedetails in part response

This commit is contained in:
Jan Böhmer 2023-09-18 21:31:55 +02:00
parent 43c15de55c
commit 59f62d4a4c
6 changed files with 10 additions and 10 deletions

View file

@ -39,7 +39,7 @@ trait InstockTrait
* @var Collection<int, PartLot> A list of part lots where this part is stored
*/
#[Assert\Valid]
#[Groups(['extended', 'full', 'import'])]
#[Groups(['extended', 'full', 'import', 'part:read', 'part:write'])]
#[ORM\OneToMany(targetEntity: PartLot::class, mappedBy: 'part', cascade: ['persist', 'remove'], orphanRemoval: true)]
#[ORM\OrderBy(['amount' => 'DESC'])]
protected Collection $partLots;