add address and postal code

This commit is contained in:
2016-03-10 17:57:30 +01:00
parent 6ae1b8334e
commit 7679786288
7 changed files with 476 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
Chill\MainBundle\Entity\Address:
type: entity
table: chill_main_address
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
streetAddress1:
type: string
length: 255
streetAddress2:
type: string
length: 255
validFrom:
type: date
manyToOne:
postcode:
targetEntity: Chill\MainBundle\Entity\PostalCode
lifecycleCallbacks: { }

View File

@@ -0,0 +1,21 @@
Chill\MainBundle\Entity\PostalCode:
type: entity
table: chill_main_postal_code
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
name:
type: string
length: 255
column: label
code:
type: string
length: 100
manyToOne:
country:
targetEntity: Chill\MainBundle\Entity\Country
lifecycleCallbacks: { }