Skip to content

Commit 4448ef6

Browse files
committedAug 27, 2022
Fix example
1 parent 714a0f7 commit 4448ef6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎Resources/docs/null_values.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
`NULL` values are also supported by ENUM field. You can set *nullable* parameter of column to `true` or `false` depends on if you want or not to allow `NULL` values:
44

55
```php
6-
#[ORM\Column(type: BasketballPositionType::class, nullable: true)]
6+
#[ORM\Column(type: 'BasketballPositionType', nullable: true)]
77
private $position;
88

99
// or
1010

11-
#[ORM\Column(type: BasketballPositionType::class, nullable: false)]
11+
#[ORM\Column(type: 'BasketballPositionType', nullable: false)]
1212
private $position;
1313
```
1414

‎Resources/docs/usage_example.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Player
6666
private $id;
6767
6868
// Note, that type of field should be same as you set in Doctrine config (in this case it is BasketballPositionType)
69-
#[ORM\Column(type: BasketballPositionType::class)]
69+
#[ORM\Column(type: 'BasketballPositionType')]
7070
#[DoctrineAssert\EnumType(entity: BasketballPositionType::class)]
7171
private $position;
7272

0 commit comments

Comments
 (0)
Please sign in to comment.