add homeless to addresses

This commit is contained in:
2020-05-01 15:49:18 +02:00
parent 5f282ecedb
commit fd9511e745
10 changed files with 163 additions and 18 deletions

View File

@@ -16,6 +16,9 @@ Chill\MainBundle\Entity\Address:
length: 255
validFrom:
type: date
isNoAddress:
type: boolean
default: false
manyToOne:
postcode:
targetEntity: Chill\MainBundle\Entity\PostalCode

View File

@@ -36,18 +36,8 @@ Chill\MainBundle\Entity\Center:
min: 2
Chill\MainBundle\Entity\Address:
properties:
streetAddress1:
- Length:
min: 2
max: 250
- NotNull: ~
- NotBlank: ~
postcode:
- NotNull: ~
validFrom:
- NotNull: ~
- Date: ~
constraints:
- Callback: validate
Chill\MainBundle\Entity\PostalCode:
properties: