I am using oracle and I am recieving this error:
Could not convert database value \"17-NOV-11 12.17.33 AM\" to Doctrine Type datetime. Expected format: Y-
Well It appears I will answer myself this time.
You have to add it as a service using the event tag.
app/config/config.yml
services:
my.listener:
class: Doctrine\DBAL\Event\Listeners\OracleSessionInit
tags:
- { name: doctrine.event_listener, event: postConnect }
my.listener is an arbitrary name for the listener.