Doctrine\DBAL\Connections\MasterSlaveConnection::isConnectedToMaster PHP Method

isConnectedToMaster() public method

Checks if the connection is currently towards the master or not.
public isConnectedToMaster ( ) : boolean
return boolean
    public function isConnectedToMaster()
    {
        return $this->_conn !== null && $this->_conn === $this->connections['master'];
    }