Comments (13)
Same for schema:create
Database and tables are not configured with dbal charset.
I think it's a bug. Because data are inserted with the config charset. And this is not normal to have data in UTF-8 in Latin schema.
I really want a feedback about that from the Doctrine community, before investigate.
from doctrinebundle.
Which version of Doctrine are you using ? IIRC, DBAL now sets the charset when creating tables instead of relying on the default value of the server (not sure if it is in 2.2.1 or only in master)
from doctrinebundle.
I use the last version of dev/master
My database is created with default mysql charset
from doctrinebundle.
I have the same issue, database and tables created in Latin.
I'm using the deps
of Symfony 2.0.15
from doctrinebundle.
I'm playing with Symfony 2.1.0-beta1 and I'm not sure witch version of doctrine uses, the composer.json file says "doctrine/orm": "2.2.*".
The problem is still there.
from doctrinebundle.
doctrine/common 2.3.x-dev bb0aebb
doctrine/dbal 2.3.x-dev 292d5ed
doctrine/doctrine-bundle dev-master 4fa47ca
The problem is still there.
from doctrinebundle.
Seems to be an issue still: https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php#L413 (no charset specified).
from doctrinebundle.
i use my solution for deb-based distrs
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=321505#57
this bug have 8 years :)
from doctrinebundle.
Hehe - great tip!
from doctrinebundle.
not sure, but it is any way related to this issue also? #210
from doctrinebundle.
@nmeirik the part you link is for creating a table and charset is should be set there.
https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php#L472
For creating database you want to take a look at https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php#L373
@jrobeson No, they are not related. #210 is "just" normal distro / php / PDO fun.
from doctrinebundle.
@kimhemsoe I think this is completely a DBAL issue and should be closed here, no? Setting the character set for tables is already supported for some time now in MySQL, setting it for databases to be created it is not supported. Not sure if we even can / should support it as it is a rather MySQL specific issue and the platform API won't let us do it anyways without changing method signature and breaking BC here.
from doctrinebundle.
@deeky666 Maybe it can be done with a optional options array, do not know if that is something we should do though.
Closing, not a bundle issue until support is in dbal, Workarounds exists by changing server config and charset is set correctly on tables, which is only reason i can remember why you want charset to set on database (I may be wrong).
from doctrinebundle.
Related Issues (20)
- PostrgreSQL 15 with Symfony 6.4 ID generation deprecation - SEQUENCE for Doctrine\DBAL\Platforms\PostgreSqlPlatform HOT 4
- Subscribing to onSchemaCreateTable events is deprecated HOT 3
- Unsetting "dbname" param leads to incorrectly casting deprecation HOT 2
- Add support to the new id entity generation preferences in Doctrine ORM 3.0 HOT 1
- Missing `doctrine/common` in composer.json
- Missing SimplifiedYamlDriver but it is still required in code. HOT 1
- Create and drop PostgreSQL database fails HOT 5
- DBAL 4 `setNestTransactionsWithSavepoints` deprecation HOT 1
- Prefix pgsql uses PDO PgSQL driver instead of PgSQL HOT 1
- Custom fields always treated as changed in Postgres HOT 2
- `CREATE SCHEMA public` is added to all `down` migrations in Postgres HOT 1
- Decorating DoctrineRegistry service breaks 'explain query' functionality in symfony webprofiler. HOT 1
- Default dbname broken since 2.11.4 HOT 3
- `enable_lazy_ghost_objects: true` breaks separation of entities with serializer groups HOT 1
- Incorrect string value saving emoji HOT 6
- Issue with StaticPHPDriver namespace since doctrine/orm 2.3 (breaks since 3.0) HOT 1
- Impossible to profile LoadDataFixturesDoctrineCommand HOT 1
- Symfony 7.1 Support HOT 1
- Update to 2.12 breaks Symfony debug toolbar HOT 11
- Overriding xml mappings file ignored HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doctrinebundle.