public function getQueryModel($model=null, $self=true)
    {
        if (!$model) {
            $model = static::getFirstTable();
        }
        
        if ($model && is_string($model)) {
            $model = preg_replace('/^' . $this->getTablePrefix() . '/', '', $model, 1);
            return static::getTableInfo($model);
        } else {
            return $model ? : ($self ? $this : null);
        }
    }
public function getQueryModel($model=null, $self=true)
    {
        if (!$model) {
            $model = static::getFirstTable();
        }
        
        if ($model && is_string($model)) {
            $model = preg_replace('/^' . $this->getTablePrefix() . '/', '', $model, 1);
            return static::getTableInfo($model);
        } else {
            return $model ? : ($self ? $this : null);
        }
    }
public function getQueryModel ( $ model = null , $ self = true ) { if ( ! $ model ) { $ model = static :: getFirstTable ( ) ; } if ( $ model && is_string ( $ model ) ) { $ model = preg_replace ( '/^' . $ this -> getTablePrefix ( ) . '/' , '' , $ model , 1 ) ; return static :: getTableInfo ( $ model ) ; } else { return $ model ? : ( $ self ? $ this : null ) ; } }
get current query model

@param  mixed   $model string|\Wslim\Db\Model
@param  boolean $self  if not model return self
@return array|\Wslim\Db\Model
get current query model