Symfony 1.4 – Doctrine and Multiple Database Connections
June 14th, 2011 / 2 Comments » / by Faizan
Symfony is one of the best PHP framework out there and provides great control over your code. It provides speed, security, ease of use and flexibility out of the box. But some times due to lack of documentation or outdated information on internet you get stuck in different issues for which even googling can’t help so you have to figure it out yourself. While working on a project I got stuck in an issue with multiple databases and Doctrine ORM. Suppose you are creating a web application where for each user of application there is a separate database stored on some different server, we call this Client database, while there is one Master database which stores user’s credentials and their Client database credentials. Now when user logs in we have to modify DSN (Data Source name) for client database depending on which user has logged in.
Earlier today at WWDC11 apple announced iOS 5 with over 200 new features. One of the most anticipated feature is iMessage that let you send message to other iOS 5 devices via Wi-Fi or 3G.
Recent Comments