improvement on import - person may have a null gender

This commit is contained in:
2018-10-05 22:54:30 +02:00
parent b5a9105a0f
commit cf2408be1b
8 changed files with 338 additions and 30 deletions

View File

@@ -28,6 +28,7 @@ Chill\PersonBundle\Entity\Person:
gender:
type: string
length: 9
nullable: true
memo:
type: text
default: ''

View File

@@ -0,0 +1,10 @@
services:
Chill\PersonBundle\Command\ImportPeopleFromCSVCommand:
arguments:
$logger: '@logger'
$helper: '@Chill\MainBundle\Templating\TranslatableStringHelper'
$em: '@Doctrine\ORM\EntityManagerInterface'
$customFieldProvider: '@Chill\CustomFieldsBundle\Service\CustomFieldProvider'
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
tags:
- { name: console.command }