chussenot
unread,Jan 17, 2011, 2:21:09 PM1/17/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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