Skip to content

Commit

Permalink
Update UPGRADE
Browse files Browse the repository at this point in the history
  • Loading branch information
eigan committed Feb 21, 2023
1 parent 290b5f0 commit 6580d35
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions UPGRADE.md
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.

0 comments on commit 6580d35

Please sign in to comment.