Changeset 4740
- Timestamp:
- 08/06/08 19:16:08 (11 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/docs/cookbook/en/master-and-slave-connections.txt
r4739 r4740 33 33 public function preQuery() 34 34 { 35 // If this is a select query then set connection to one of the s alves35 // If this is a select query then set connection to one of the slaves 36 36 if ($this->getType() == Doctrine_Query::SELECT) { 37 37 $this->_conn = Doctrine_Manager::getInstance()->getConnection('slave_' . rand(1, 4));