src/Charcoal/Admin/Widget/FormGroup/AclPermissions.php
protected function db()
    {
        if (!isset($this->database)) {
            throw new RuntimeException(sprintf(
                'Database Connection is not defined for "%s"',
                get_class($this)
            ));
        }

        return $this->database;
    }
protected function db()
    {
        if (!isset($this->database)) {
            throw new RuntimeException(sprintf(
                'Database Connection is not defined for "%s"',
                get_class($this)
            ));
        }

        return $this->database;
    }
protected function db ( ) { if ( ! isset ( $ this -> database ) ) { throw new RuntimeException ( sprintf ( 'Database Connection is not defined for "%s"' , get_class ( $ this ) ) ) ; } return $ this -> database ; }
Retrieve the database connection.

@throws RuntimeException If the connection is undefined.
@return PDO
Retrieve the database connection .