Pt_BR En Ja De Fr 
<< Doctrine 1.0 BETA1 Released Creating a Unit of Work Using Doctrine >>

Master and Slave Connections

Master and Slave Connections

Posted by jwage 15 days ago

In this new cookbook recipe we demonstrate how you can setup multiple connections and use them as master/slaves. All select statements are issued to the slaves and any insert/update/delete statements are issued to the master. This example accomplishes the functionality by extending Doctrine_Query and Doctrine_Record. This article is a perfect example of how you can extend and override functionality in Doctrine to accomplish your needs when Doctrine doesn't necessarily have a native solution ready to go for you.


Comments (1) [ add comment ]

very nice - Posted by cedric sadai about 15 days ago.

excellent doc.
A good way to show the flexibility of doctrine

Add Comment

Add New Comment
Please enter follow the doctrine