library/Garp/Spawn/MySql/View/Joint.php
protected function _getRecordLabelSqlForModel($tableAlias, $modelName) {
        $model = $this->_getModelFromModelName($modelName);

        $tableName = $this->_getOtherTableName($modelName);
        $recordLabelFieldDefs = $this->_getRecordLabelFieldDefinitions($tableAlias, $model);

        $labelColumnsListSql = implode(', ', $recordLabelFieldDefs);
        $glue = $this->_modelHasFirstAndLastNameListFields($model) ? ' ' : ', ';
        $sql = "CONVERT(CONCAT_WS('{$glue}', " . $labelColumnsListSql . ') USING utf8)';

        return $sql;
    }
protected function _getRecordLabelSqlForModel($tableAlias, $modelName) {
        $model = $this->_getModelFromModelName($modelName);

        $tableName = $this->_getOtherTableName($modelName);
        $recordLabelFieldDefs = $this->_getRecordLabelFieldDefinitions($tableAlias, $model);

        $labelColumnsListSql = implode(', ', $recordLabelFieldDefs);
        $glue = $this->_modelHasFirstAndLastNameListFields($model) ? ' ' : ', ';
        $sql = "CONVERT(CONCAT_WS('{$glue}', " . $labelColumnsListSql . ') USING utf8)';

        return $sql;
    }
protected function _getRecordLabelSqlForModel ( $ tableAlias , $ modelName ) { $ model = $ this -> _getModelFromModelName ( $ modelName ) ; $ tableName = $ this -> _getOtherTableName ( $ modelName ) ; $ recordLabelFieldDefs = $ this -> _getRecordLabelFieldDefinitions ( $ tableAlias , $ model ) ; $ labelColumnsListSql = implode ( ', ' , $ recordLabelFieldDefs ) ; $ glue = $ this -> _modelHasFirstAndLastNameListFields ( $ model ) ? ' ' : ', ' ; $ sql = "CONVERT(CONCAT_WS('{$glue}', " . $ labelColumnsListSql . ') USING utf8)' ; return $ sql ; }
Compose the method to fetch composite columns as a string in a MySql query
to use as a label to identify the record. These have to be columns in the provided table,
to be able to be used flexibly in another query.

@param string $tableAlias
@param string $modelName
@return string
Compose the method to fetch composite columns as a string in a MySql query to use as a label to identify the record . These have to be columns in the provided table to be able to be used flexibly in another query .