Answer the question
In order to leave comments, you need to log in
Doctrine how to make enum field in table via annotations?
In Larval, to create an enum field, I did this: ->enum('name', ['val1', 'val2'])
In the doctrine in the annotations, setting the type of the field there is no option enum
docs.doctrine-project.org/en/latest/reference/basi...
And I want the field to be equal only to certain constants from the array .
Please tell me how to do it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question