We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4d4532 commit 857d08eCopy full SHA for 857d08e
README.MD
@@ -36,7 +36,7 @@ class MyEnumType extends \NeutronStars\Enum\Types\EnumType {
36
}
37
```
38
39
-And you must add this to the `doctrine.yaml` configuration file:
+You must add this to the `doctrine.yaml` configuration file:
40
41
```yml
42
doctrine:
@@ -46,4 +46,21 @@ doctrine:
46
class: App\Types\MyEnumType
47
48
49
+
50
+On the annotation that contains the field of your entity, you must put the type:
51
52
+```php
53
+/**
54
+ * @ORM\Column(type="my_enum")
55
+ * @var MyEnum|null
56
+ */
57
+private ?MyEnum $myEnum;
58
+```
59
60
+you must comment out the column that contains the enum during your sql migration:
61
62
63
+$this->addSql('COMMENT ON COLUMN "your_table"."your_column" IS \'(DC2Type:my_enum)\';');
64
65
66
---
0 commit comments