public function getJoin($forCount = false) {
        if (!$this->with) {
            return $this->join;
        }
        if (!$this->relationsParser) {
            $this->relationsParser = RelationsParser::parse($this->model, $this, $this->conditionColumns);
        }
        return ($forCount?$this->relationsParser->getForCount():$this->relationsParser->getForMainSelect()) . ' ' . $this->join;
    }
public function getJoin($forCount = false) {
        if (!$this->with) {
            return $this->join;
        }
        if (!$this->relationsParser) {
            $this->relationsParser = RelationsParser::parse($this->model, $this, $this->conditionColumns);
        }
        return ($forCount?$this->relationsParser->getForCount():$this->relationsParser->getForMainSelect()) . ' ' . $this->join;
    }
public function getJoin ( $ forCount = false ) { if ( ! $ this -> with ) { return $ this -> join ; } if ( ! $ this -> relationsParser ) { $ this -> relationsParser = RelationsParser :: parse ( $ this -> model , $ this , $ this -> conditionColumns ) ; } return ( $ forCount ? $ this -> relationsParser -> getForCount ( ) : $ this -> relationsParser -> getForMainSelect ( ) ) . ' ' . $ this -> join ; }
Get join info query for current condition;
@param bool $forCount
@return string
Get join info query for current condition ;