mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 11:48:49 +02:00
Added basic API to access and edit manufacturer entities
This commit is contained in:
parent
f5a15b23d6
commit
676c8eeefb
11 changed files with 96 additions and 21 deletions
|
@ -43,21 +43,21 @@ abstract class AbstractCompany extends AbstractPartsContainingDBElement
|
|||
/**
|
||||
* @var string The address of the company
|
||||
*/
|
||||
#[Groups(['full'])]
|
||||
#[Groups(['full', 'company:read', 'company:write'])]
|
||||
#[ORM\Column(type: Types::STRING)]
|
||||
protected string $address = '';
|
||||
|
||||
/**
|
||||
* @var string The phone number of the company
|
||||
*/
|
||||
#[Groups(['full'])]
|
||||
#[Groups(['full', 'company:read', 'company:write'])]
|
||||
#[ORM\Column(type: Types::STRING)]
|
||||
protected string $phone_number = '';
|
||||
|
||||
/**
|
||||
* @var string The fax number of the company
|
||||
*/
|
||||
#[Groups(['full'])]
|
||||
#[Groups(['full', 'company:read', 'company:write'])]
|
||||
#[ORM\Column(type: Types::STRING)]
|
||||
protected string $fax_number = '';
|
||||
|
||||
|
@ -65,7 +65,7 @@ abstract class AbstractCompany extends AbstractPartsContainingDBElement
|
|||
* @var string The email address of the company
|
||||
*/
|
||||
#[Assert\Email]
|
||||
#[Groups(['full'])]
|
||||
#[Groups(['full', 'company:read', 'company:write'])]
|
||||
#[ORM\Column(type: Types::STRING)]
|
||||
protected string $email_address = '';
|
||||
|
||||
|
@ -73,7 +73,7 @@ abstract class AbstractCompany extends AbstractPartsContainingDBElement
|
|||
* @var string The website of the company
|
||||
*/
|
||||
#[Assert\Url]
|
||||
#[Groups(['full'])]
|
||||
#[Groups(['full', 'company:read', 'company:write'])]
|
||||
#[ORM\Column(type: Types::STRING)]
|
||||
protected string $website = '';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue