We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ea6421 commit c544a64Copy full SHA for c544a64
src/SwaggerServiceProvider.php
@@ -48,7 +48,11 @@ public function boot(): void {
48
49
$this->loadValidationRules();
50
51
- DB::getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
+ try {
52
+ DB::getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
53
+ } catch (\Exception $e) {
54
+ error_log('Could not register enum type as string because of connexion error.');
55
+ }
56
57
if (file_exists($file = __DIR__ . '/helpers.php')) {
58
require $file;
0 commit comments