Jumped to beta 2 and I'm still unable to create utf8 tables.
A look in vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/
MySqlPlatform.php at line 383 clearly indicate that we can pass some
options like comment, charset, collate and so.
That means that we can configure this in Symfony without tweaking
mysql server.
I've tried by setting some config params like:
doctrine:
dbal:
....
options:
charset: utf8
collate: utf8_unicode_ci
type: innodb
Those options are not transmitted to the table creation class so the
table is created with defaults mysql params.
How can we pass this charset ? By config or annotation in the model ?
Thank you for any clever advice.
David
On 13 mai, 13:50, Καρακούσης Απόστολος <[email protected]> wrote:
> as Christophe says, you should simply replace UTF-8 withutf8and it should
> work!
>
> On May 13, 2011, at 1:31 PM, Christophe COEVOET wrote:
>
>
>
>
>
>
>
> > Le 13/05/2011 12:06, davidj a écrit :
> >> OK, it seems that a bug in doctrine dbal configuration parsing is
> >> under review by fabpot.
> >> I keep commenting
> >> onhttp://groups.google.com/group/symfony-users/browse_thread/thread/a58...
> > Your issue is not a bug. It is the Doctrine expected behavior as I said
> > previously: it does not set any encoding when creating the tables, relying
> > on the default encoding set when you created your database.
>
> > --
> > 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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en