Hi Jhonatan, On 18 September 2014 14:45, jhonatanluiz <[email protected]> wrote:
> Hi guys. > > I have a PHP CLI script that connects to an Oracle Database. The problem > that I have is that sometimes, the connects gets iddle and subsequently > generates an ORA-01012 error. I've tried using > $em->getConnection()->connect() and that didn't work. I'd like to know how > can I keep the connection alive during the script's whole execution time. > > Thanks for your help. > As of doctrine/dbal 2.5, you will have a `Doctrine\DBAL\Connection#ping()` - see https://github.com/doctrine/dbal/blob/v2.5.0-RC2/lib/Doctrine/DBAL/Connection.php#L1590 Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
