forked from FriendsOfAkeneo/CustomEntityBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidation.yml
40 lines (37 loc) · 834 Bytes
/
validation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Acme\Bundle\CustomBundle\Entity\Brand:
properties:
code:
- NotBlank: ~
Acme\Bundle\CustomBundle\Entity\Color:
properties:
code:
- NotBlank: ~
name:
- NotBlank: ~
hex:
- NotBlank: ~
red:
- NotBlank: ~
- Range:
min: 0
max: 255
green:
- NotBlank: ~
- Range:
min: 0
max: 255
blue:
- NotBlank: ~
- Range:
min: 0
max: 255
Acme\Bundle\CustomBundle\Entity\Fabric:
properties:
code:
- NotBlank: ~
name:
- NotBlank: ~
Acme\Bundle\CustomBundle\Entity\Pictogram:
properties:
code:
- NotBlank: ~