Skip to content

Commit

Permalink
Release v1.1.2 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethsandaru authored Jan 2, 2023
1 parent 6bd419a commit 607ff44
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,15 @@ For this case, EloquentPhpDoc will always return `mixed`
- v1.0.0
- First version
- View & Update phpDoc for a single Model at a time
- v1.1.0 (planned)
- Bulk replace by namespace
- v1.1.0
- `--short-class`
- Fixed some issues
- v1.1.1
- Fixed issue when generating a table that has `enum` column
- v1.1.2
- Fixed issue when first-time install the library that made Laravel discovery went wrong.
- v1.2.0 (in development)
- Bulk generating from `--path=`

## Contribute to the library

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sethphat/eloquent-docs",
"version": "1.1.1",
"version": "1.1.2",
"description": "Generate PHPDoc scope for your Eloquent models",
"type": "library",
"require": {
Expand Down
10 changes: 6 additions & 4 deletions src/EloquentDocsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ public function boot(): void
EloquentDocsGeneratorCommand::class,
]);

DB::connection()
->getDoctrineConnection()
->getDatabasePlatform()
->registerDoctrineTypeMapping('enum', 'string');
if (interface_exists('Doctrine\DBAL\Driver')) {
DB::connection()
->getDoctrineConnection()
->getDatabasePlatform()
->registerDoctrineTypeMapping('enum', 'string');
}
}
}
}

0 comments on commit 607ff44

Please sign in to comment.