UTF8

0 views
Skip to first unread message

chussenot

unread,
Jan 17, 2011, 2:21:09 PM1/17/11
to flextrine

Hi Dave,

i add this line in your Config.php to fix an encodage pb.
put an EventListener to set utf8

........
use Doctrine\ORM\EntityManager,
Doctrine\ORM\Configuration,
Doctrine\Common\Cache\ApcCache,
Doctrine\Common\Annotations\AnnotationReader,
Doctrine\ORM\Mapping\Driver\AnnotationDriver,
Doctrine\DBAL\Event\Listeners\MysqlSessionInit;
........
.........
// Create EntityManager and put it into Config
self::$em = EntityManager::create(Config::$connectionOptions,
$config);
self::$em->getEventManager()->addEventSubscriber(new
MysqlSessionInit('utf8', 'utf8_unicode_ci'));
..............


Bye
Reply all
Reply to author
Forward
0 new messages