Skip to content

Commit

Permalink
Update README.md for doctrine/orm 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
vmdumitrache committed Jan 20, 2021
1 parent 1596159 commit 4ece4a3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Expand Up @@ -135,8 +135,9 @@ doctrine:
dbal:
types:
uuid_binary: Ramsey\Uuid\Doctrine\UuidBinaryType
mapping_types:
uuid_binary: binary
# Uncomment if using doctrine/orm <2.8
# mapping_types:
# uuid_binary: binary
```

Then, when annotating model class properties, use `uuid_binary` instead of `uuid`:
Expand Down Expand Up @@ -168,8 +169,9 @@ doctrine:
dbal:
types:
uuid_binary_ordered_time: Ramsey\Uuid\Doctrine\UuidBinaryOrderedTimeType
mapping_types:
uuid_binary_ordered_time: binary
# Uncomment if using doctrine/orm <2.8
# mapping_types:
# uuid_binary_ordered_time: binary
```

Then, in your models, you may annotate properties by setting the `@Column`
Expand Down

0 comments on commit 4ece4a3

Please sign in to comment.