Added endpoint for suppliers

This commit is contained in:
Jan Böhmer 2023-08-06 20:57:32 +02:00
parent 6b5c51bdc5
commit 3486957447
2 changed files with 29 additions and 3 deletions

View file

@ -96,6 +96,8 @@ class Manufacturer extends AbstractCompany
#[Assert\Valid]
#[ORM\OneToMany(targetEntity: ManufacturerParameter::class, mappedBy: 'element', cascade: ['persist', 'remove'], orphanRemoval: true)]
#[ORM\OrderBy(['group' => 'ASC', 'name' => 'ASC'])]
#[Groups(['manufacturer:read', 'manufacturer:write'])]
#[ApiProperty(readableLink: false, writableLink: true)]
protected Collection $parameters;
public function __construct()
{