public getSlave ( boolean $fallbackToMaster = true ) : |
||
$fallbackToMaster | boolean | whether to return a master connection in case there is no slave connection available. |
Результат | the currently active slave connection. Null is returned if there is slave available and `$fallbackToMaster` is false. |