mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-25 04:19:31 +00: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 OrderTrait
|
|||
* @var Collection<int, Orderdetail> The details about how and where you can order this part
|
||||
*/
|
||||
#[Assert\Valid]
|
||||
#[Groups(['extended', 'full', 'import'])]
|
||||
#[Groups(['extended', 'full', 'import', 'part:read', 'part:write'])]
|
||||
#[ORM\OneToMany(targetEntity: Orderdetail::class, mappedBy: 'part', cascade: ['persist', 'remove'], orphanRemoval: true)]
|
||||
#[ORM\OrderBy(['supplierpartnr' => 'ASC'])]
|
||||
protected Collection $orderdetails;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue