From 4448ef6abd4bcdeee6811d11a932315754d8f0d9 Mon Sep 17 00:00:00 2001 From: Artem Henvald Date: Sat, 27 Aug 2022 14:21:15 +0300 Subject: [PATCH] Fix example --- Resources/docs/null_values.md | 4 ++-- Resources/docs/usage_example.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Resources/docs/null_values.md b/Resources/docs/null_values.md index 6b37f3c..1de8370 100644 --- a/Resources/docs/null_values.md +++ b/Resources/docs/null_values.md @@ -3,12 +3,12 @@ `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: ```php -#[ORM\Column(type: BasketballPositionType::class, nullable: true)] +#[ORM\Column(type: 'BasketballPositionType', nullable: true)] private $position; // or -#[ORM\Column(type: BasketballPositionType::class, nullable: false)] +#[ORM\Column(type: 'BasketballPositionType', nullable: false)] private $position; ``` diff --git a/Resources/docs/usage_example.md b/Resources/docs/usage_example.md index 1a1231a..3ed49e1 100644 --- a/Resources/docs/usage_example.md +++ b/Resources/docs/usage_example.md @@ -66,7 +66,7 @@ class Player private $id; // Note, that type of field should be same as you set in Doctrine config (in this case it is BasketballPositionType) - #[ORM\Column(type: BasketballPositionType::class)] + #[ORM\Column(type: 'BasketballPositionType')] #[DoctrineAssert\EnumType(entity: BasketballPositionType::class)] private $position;