48 private $forceWriteConnection =
false;
57 $this->forceWriteConnection =
true;
70 if ( $this->forceWriteConnection ) {
71 return parent::getWriteConnection( $flags );
74 return parent::getReadConnection( $groups, $flags );
87 return parent::getWriteConnection( $flags );
99 if ( $this->forceWriteConnection ) {
100 return parent::getWriteConnectionRef();
103 return parent::getReadConnectionRef( $groups );
114 return parent::getWriteConnectionRef();