protected function addDefaultListField()
    {
        if (!in_array(Api::API_LIST_NAME_FIELD, array_values($this->extraColumns))) {
            /** @var TableMap $tableMap */
            $tableMap = $this->getTableMap();
            /** @var ColumnMap $column */
            $column = null;
            if ($tableMap->hasColumn('NAME')) {
                $column = $tableMap->getColumn('NAME');
            } elseif ($tableMap->hasColumn('TITLE')) {
                $column = $tableMap->getColumn('TITLE');
            } elseif ($tableMap->hasColumn('LABEL')) {
                $column = $tableMap->getColumn('LABEL');
            }
            if (null !== $column) {
                $this->extraColumns[$column->getFullyQualifiedName()] = Api::API_LIST_NAME_FIELD;
            } else {
                $this->addClassListName($tableMap);
            }
        }
    }
protected function addDefaultListField()
    {
        if (!in_array(Api::API_LIST_NAME_FIELD, array_values($this->extraColumns))) {
            /** @var TableMap $tableMap */
            $tableMap = $this->getTableMap();
            /** @var ColumnMap $column */
            $column = null;
            if ($tableMap->hasColumn('NAME')) {
                $column = $tableMap->getColumn('NAME');
            } elseif ($tableMap->hasColumn('TITLE')) {
                $column = $tableMap->getColumn('TITLE');
            } elseif ($tableMap->hasColumn('LABEL')) {
                $column = $tableMap->getColumn('LABEL');
            }
            if (null !== $column) {
                $this->extraColumns[$column->getFullyQualifiedName()] = Api::API_LIST_NAME_FIELD;
            } else {
                $this->addClassListName($tableMap);
            }
        }
    }
protected function addDefaultListField ( ) { if ( ! in_array ( Api :: API_LIST_NAME_FIELD , array_values ( $ this -> extraColumns ) ) ) { /** @var TableMap $tableMap */ $ tableMap = $ this -> getTableMap ( ) ; /** @var ColumnMap $column */ $ column = null ; if ( $ tableMap -> hasColumn ( 'NAME' ) ) { $ column = $ tableMap -> getColumn ( 'NAME' ) ; } elseif ( $ tableMap -> hasColumn ( 'TITLE' ) ) { $ column = $ tableMap -> getColumn ( 'TITLE' ) ; } elseif ( $ tableMap -> hasColumn ( 'LABEL' ) ) { $ column = $ tableMap -> getColumn ( 'LABEL' ) ; } if ( null !== $ column ) { $ this -> extraColumns [ $ column -> getFullyQualifiedName ( ) ] = Api :: API_LIST_NAME_FIELD ; } else { $ this -> addClassListName ( $ tableMap ) ; } } }
Method that add a new field with the Label of the row
Method that add a new field with the Label of the row