protected function existsInCondition($name) {
        foreach ($this->conditionColumns as $column) {
            if (0 === strpos($column, $name . '.')) {
                return true;
            }
        }
        return false;
    }
protected function existsInCondition($name) {
        foreach ($this->conditionColumns as $column) {
            if (0 === strpos($column, $name . '.')) {
                return true;
            }
        }
        return false;
    }
protected function existsInCondition ( $ name ) { foreach ( $ this -> conditionColumns as $ column ) { if ( 0 === strpos ( $ column , $ name . '.' ) ) { return true ; } } return false ; }
Checks if condition depends on that relation or not. If it doesn't then there's no need for a join when counting.
@param $name
@return bool
Checks if condition depends on that relation or not . If it doesn t then there s no need for a join when counting .