Persistent Connections with Doctrine 1.2
Forcing Doctrine 1.2 to use persistent database connections was a matter that gave me a bit of trouble the other day. It’s undocumented, and appears in the code (Doctrine/Connection.php) that you can set persistence as an option, but that code also appears to be orphaned.
The best way to create a persistent connection is by passing a persistent PDO object directly to Doctrine:
Not so hard, after all.