public function setModelAlias($modelAlias, $useAliasInSQL = false)
    {
        if ($useAliasInSQL) {
            $this->addAlias($modelAlias, $this->tableMap->getName());
            $this->useAliasInSQL = true;
        }

        $this->modelAlias = $modelAlias;

        return $this;
    }
public function setModelAlias($modelAlias, $useAliasInSQL = false)
    {
        if ($useAliasInSQL) {
            $this->addAlias($modelAlias, $this->tableMap->getName());
            $this->useAliasInSQL = true;
        }

        $this->modelAlias = $modelAlias;

        return $this;
    }
public function setModelAlias ( $ modelAlias , $ useAliasInSQL = false ) { if ( $ useAliasInSQL ) { $ this -> addAlias ( $ modelAlias , $ this -> tableMap -> getName ( ) ) ; $ this -> useAliasInSQL = true ; } $ this -> modelAlias = $ modelAlias ; return $ this ; }
Sets the alias for the model in this query

@param string  $modelAlias    The model alias
@param boolean $useAliasInSQL Whether to use the alias in the SQL code (false by default)

@return $this|ModelCriteria The current object, for fluid interface
Sets the alias for the model in this query