Could someone tell me how to force Doctrine to create database tables with UTF-8 coding and utf8_polish_ci? My Doctrine config file has this db configuration parameters:
$conn = array(
'driver' => 'pdo_mysql',
'dbname' => 'test',
'user' => 'root',
'password' => '*****',
'charset' => 'utf8',
'driverOptions' => array(1002=>'SET NAMES utf8'));
Nevertheless, it’s still creating table with default coding: latin1 and latin1_swedish_ci.
You set it in your database, doctrine just uses the databases default values. See this question from the Doctrine 2.1 FAQ: