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 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;