public function getCondition($name, $models = null) {
        $this->_afterConditionParams = $this->_afterConditionJoins = [];
        if (is_null($models)) {
            return $this->_calcJoin();
        } elseif (!is_array($models)) {
            $models = [$models]; // if it's not a list already;
        }
        return $this->_calcModels($models);
    }