Added admin pages for manufacturers and suppliers.

This commit is contained in:
Jan Böhmer 2019-04-26 19:12:48 +02:00
parent df0a8254bf
commit 4e9cbdffed
9 changed files with 383 additions and 6 deletions

View file

@ -24,6 +24,7 @@ declare(strict_types=1);
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* This abstract class is used for companies like suppliers or manufacturers.
@ -36,37 +37,39 @@ abstract class Company extends StructuralDBElement
* @var string The address of the company
* @ORM\Column(type="string")
*/
protected $address;
protected $address = "";
/**
* @var string The phone number of the company
* @ORM\Column(type="string")
*/
protected $phone_number;
protected $phone_number = "";
/**
* @var string The fax number of the company
* @ORM\Column(type="string")
*/
protected $fax_number;
protected $fax_number = "";
/**
* @var string The email address of the company
* @ORM\Column(type="string")
* @Assert\Email()
*/
protected $email_address;
protected $email_address = "";
/**
* @var string The website of the company
* @ORM\Column(type="string")
* @Assert\Url()
*/
protected $website;
protected $website = "";
/**
* @var string
* @ORM\Column(type="string")
*/
protected $auto_product_url;
protected $auto_product_url = "";
/********************************************************************************
*