diff --git a/DependencyInjection/PropelExtension.php b/DependencyInjection/PropelExtension.php index 55c47a0..9890083 100644 --- a/DependencyInjection/PropelExtension.php +++ b/DependencyInjection/PropelExtension.php @@ -66,7 +66,15 @@ class PropelExtension extends Extension 'default_connection' => 'default', ); - $className = $container->getParameter('kernel.debug') ? 'DebugPDO' : 'PropelPDO'; + if (!$container->hasParameter('propel.charset')) { + $container->setParameter('propel.charset', 'utf8'); + } + + if ($container->hasParameter('kernel.debug')) { + $className = $container->getParameter('kernel.debug') ? 'DebugPDO' : 'PropelPDO'; + } else { + $className = 'PropelPDO'; + } $defaultConnection = array( 'driver' => 'mysql',