Le 15/06/2011 12:05, spider a écrit :
Sorry if I reply to this old post, but what if I want to map enum type
to string?
I tried the following edit in app/config/config.yml:
doctrine:
dbal:
types:
enum: string
but each time I try the doctrine:mapping:convert console command it
throw the exception about enum type not supported.
Any help?
Thank you.
Lorenzo
You don't use the good syntax to register a custom type. Look at
http://symfony.com/doc/current/cookbook/doctrine/dbal.html#registering-custom-mapping-types
and
http://www.doctrine-project.org/docs/dbal/2.0/en/reference/types.html#custom-mapping-types
The configuration should be a Type class name.
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en