Create form to create offering
This commit is contained in:
parent
635c8e900c
commit
990da0e669
5 changed files with 37 additions and 6 deletions
|
@ -4,6 +4,7 @@ namespace App\Entity;
|
|||
|
||||
use App\Repository\OfferingRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
/**
|
||||
* @ORM\Entity(repositoryClass=OfferingRepository::class)
|
||||
|
@ -31,6 +32,7 @@ class Offering
|
|||
/**
|
||||
* @ORM\Column(type="string", length=255)
|
||||
*/
|
||||
#[Assert\NotBlank]
|
||||
private $title;
|
||||
|
||||
/**
|
||||
|
@ -41,6 +43,7 @@ class Offering
|
|||
/**
|
||||
* @ORM\Column(type="integer")
|
||||
*/
|
||||
#[Assert\NotBlank]
|
||||
private $zipCode;
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue