Skip to content

Commit

Permalink
Adds description on how to configure roave/psr-container-doctrine
Browse files Browse the repository at this point in the history
  • Loading branch information
arueckauer committed Sep 30, 2022
1 parent af426c2 commit 528d941
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,23 @@ In Laravel:
],
```

In [roave/psr-container-doctrine](https://github.com/Roave/psr-container-doctrine):

```php
<?php
use Ramsey\Uuid\Doctrine\UuidType;

return [
'doctrine' => [
'types' => [
UuidType::NAME => UuidType::class,
],
/* ... */
],
/* ... */
];
```

### Mappings

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

0 comments on commit 528d941

Please sign in to comment.