Skip to content

Commit

Permalink
Adds description on how to configure roave/psr-container-doctrine (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
arueckauer authored Nov 3, 2022
1 parent dc9743d commit cc6cdc4
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 cc6cdc4

Please sign in to comment.