public function getQuery(AnConfig $config = null)
    {
        if (!isset($config)) {
            $config = new AnConfig(array('adapter' => $this));
        }

        return new AnDatabaseQuery($config);
    }
public function getQuery(AnConfig $config = null)
    {
        if (!isset($config)) {
            $config = new AnConfig(array('adapter' => $this));
        }

        return new AnDatabaseQuery($config);
    }
public function getQuery ( AnConfig $ config = null ) { if ( ! isset ( $ config ) ) { $ config = new AnConfig ( array ( 'adapter' => $ this ) ) ; } return new AnDatabaseQuery ( $ config ) ; }
Get a database query object

@return AnDatabaseQuery
Get a database query object