mirror of
https://github.com/tchapi/davis.git
synced 2025-04-02 19:52:37 +02:00
More improvements on constraints
This commit is contained in:
parent
fcdefffaad
commit
3e57b82a39
@ -66,6 +66,7 @@ class CalendarInstance
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="calendarcolor", type="binary", length=10, nullable=true)
|
||||
* @Assert\Regex("/\#[0-9]{6}/")
|
||||
*/
|
||||
private $calendarColor;
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
namespace App\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
/**
|
||||
* @ORM\Table(name="schedulingobjects")
|
||||
@ -29,6 +30,7 @@ class SchedulingObject
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="binary", length=255, nullable=true)
|
||||
* @Assert\Regex("/[0-9a-z\-]+/")
|
||||
*/
|
||||
private $uri;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user