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;
    }