Doctrine how to make the enum field in the table using annotation?

In Larvae for creation of enum fields did
->enum('name', ['val1', 'val2'])

In the doctrine annotation, specifying the type of the field is no option enum
docs.doctrine-project.org/en/latest/reference/basi...

And I would want that field was equal to specific constants from masiiwa.

Please tell me how to do?
June 10th 19 at 16:53
1 answer
June 10th 19 at 16:55
Solution
Annotation can be done. And in General I do not advise to use a real enum. It is better to use varchars mapping.

docs.doctrine-project.org/projects/doctrine-orm/en...

Find more questions by tags Doctrine ORM