Create form to create offering

This commit is contained in:
Jannis Portmann 2021-04-30 17:08:34 +02:00
parent 635c8e900c
commit 990da0e669
5 changed files with 37 additions and 6 deletions

View file

@ -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;
/**