Jarves\Configuration\Database::hasSlaveConnection PHP Method

hasSlaveConnection() public method

public hasSlaveConnection ( ) : boolean
return boolean
    public function hasSlaveConnection()
    {
        if ($this->connections) {
            foreach ($this->connections as $connection) {
                if ($connection->isSlave()) {
                    return true;
                }
            }
        }
        return false;
    }