At the database I've a column that is from type Integer that can only contain the following values Active = 1, Temporary=7, Deleted=10. Can these values be mapped from the server to a enum and the database is storing it within a integer column?
According to the documentation I can only use enums when the values are also stored as enums in the database.
Have you tried to look at @map? Using your question as input, the enum would look like this.
enum YOU_ENUM {
Active @map(1)
Temporary @map(7)
}
I think it is impossible at the time of writing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With