In the application I use Doctrine_Query::create() many times.
Do I need to call close connection each time I use it? Or will doctrine do it for me ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Creating a query does not make a new connection, so you don’t need to worry at all. There is a single connection established each request by the Doctrine connection manager, and all your queries will go over that connection.