LazyRecord\BaseModel::getReadConnection PHP Method

getReadConnection() public method

Get PDO connection for reading data.
public getReadConnection ( ) : PDO
return PDO
    public function getReadConnection()
    {
        return $this->_readConnection ? $this->_readConnection : ($this->_readConnection = ConnectionManager::getInstance()->getConnection($this->readSourceId));
    }