-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
# Upgrade to 2.0 | ||
|
||
## Breaking Change: DBAL 3 | ||
## DBAL 3 | ||
|
||
The most significant change in version 2.0 is using doctrine/dbal 3. You should [review their upgrade guide](https://github.com/doctrine/dbal/blob/bd54f5043eaff656b314037bf285d8b7f1c311b8/UPGRADE.md) in addition to this one. | ||
|
||
## Breaking Change: Removed JSON type | ||
If you were still including this line in your custom_types config, it should be removed: | ||
## Minimum Doctrine/ORM version to 2.14 | ||
|
||
``` | ||
'json' => LaravelDoctrine\ORM\Types\Json::class | ||
``` | ||
This release supports a minimum doctrine/orm version of 2.14 due to a number of deprecations and new features that we are taking advantage of. | ||
|
||
## Breaking Change: Short namespaces | ||
## Command signature changed | ||
|
||
Short namespaces such as `Entities:User` are no longer supported by Doctrine and have been removed. | ||
All doctrine commands are now extended from `doctrine` itself. Some of the command options have been changed or removed, and some have been added. | ||
|
||
## Breaking Change: Minimum Doctrine/ORM version to 2.14 | ||
### Removed: FluentExporter, GenerateEntitiesCommand, GenerateRepositoriesCommand, ConvertMappingCommand, MappingImportCommand, ConvertConfigCommand | ||
|
||
This release supports a minimum doctrine/orm version of 2.14 due to a number of deprecations and new features that we are taking advantage of. | ||
Doctrine is moving away from code generation and we are following suit, as well as reducing our maintenance burden. | ||
|
||
## Breaking Change: Removed MasterSlaveConnection | ||
## Removed MasterSlaveConnection | ||
|
||
The old MasterSlaveConnection has been supported for backwards compatibility, but has now been removed. You can migrate to the new PrimaryReadReplicaConnection instead. | ||
|
||
## Removed: FluentExporter, GenerateEntitiesCommand, GenerateRepositoriesCommand, ConvertMappingCommand | ||
## Removed JSON type | ||
If you were still including this line in your custom_types config, it should be removed: | ||
|
||
Doctrine is moving away from code generation and we are following suit, as well as reducing our maintenance burden. | ||
``` | ||
'json' => LaravelDoctrine\ORM\Types\Json::class | ||
``` | ||
|
||
## Removed: --flush option from cache clearing commands | ||
## Short namespaces | ||
|
||
`doctrine:clear:metadata:cache`, `doctrine:clear:query:cache`, `doctrine:clear:result:cache` no longer support the flush option due to moving from the obsolete Doctrine cache to the Symfony cache. | ||
Short namespaces such as `Entities:User` are no longer supported by Doctrine and have been removed. |