mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-25 21:34:59 +02:00
Show lots, order and pricedetails in part response
This commit is contained in:
parent
43c15de55c
commit
59f62d4a4c
6 changed files with 10 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue