[address] allow to add custom data on addresses

This commit is contained in:
2021-03-08 14:11:39 +01:00
parent 14d32aa763
commit 5bf9bbc22e
9 changed files with 172 additions and 17 deletions

View File

@@ -19,6 +19,9 @@ Chill\MainBundle\Entity\Address:
isNoAddress:
type: boolean
default: false
customs:
type: json
default: []
manyToOne:
postcode:
targetEntity: Chill\MainBundle\Entity\PostalCode

View File

@@ -29,4 +29,10 @@ services:
Chill\MainBundle\Templating\Entity\ChillEntityRenderExtension:
tags:
- { name: twig.extension }
- { name: twig.extension }
Chill\MainBundle\Templating\Entity\AddressRendering:
arguments:
$twig: '@templating.engine.twig'
tags:
- { name: 'chill.render_entity' }