To use the native MySQL ENUM type in Symfony and Doctrine you will have to update your "project/config/databases.yml" and add the "use_native_enum" directive under "attributes" i.e:
attributes:
use_native_enum: true
use_dql_callbacks: true
default_table_collate: utf8_general_ci
default_table_charset: utf8
use_native_enum: true
use_dql_callbacks: true
default_table_collate: utf8_general_ci
default_table_charset: utf8
Full Version
all:
doctrine:
class: sfDoctrineDatabase
param:
dsn: 'mysql:host=localhost;dbname=mydb_prod'
username: root
password: 12345
attributes:
use_native_enum: true
use_dql_callbacks: true
default_table_collate: utf8_general_ci
default_table_charset: utf8
doctrine:
class: sfDoctrineDatabase
param:
dsn: 'mysql:host=localhost;dbname=mydb_prod'
username: root
password: 12345
attributes:
use_native_enum: true
use_dql_callbacks: true
default_table_collate: utf8_general_ci
default_table_charset: utf8
Thanks Iman! =)