Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function boot() |
||
26 | { |
||
27 | parent::boot(); |
||
28 | |||
29 | $databasePlatform = $this->container->get('doctrine.dbal.default_connection')->getDatabasePlatform(); |
||
30 | |||
31 | if (!$databasePlatform->hasDoctrineTypeMappingFor('enum') || 'string' !== $databasePlatform->getDoctrineTypeMapping('enum')) { |
||
32 | $databasePlatform->registerDoctrineTypeMapping('enum', 'string'); |
||
33 | } |
||
34 | } |
||
35 | } |
||
36 |