src/Titon/Db/Repository.php
public function getDisplayField() {
        return $this->cache(__METHOD__, function() {
            $fields = $this->getConfig('displayField');
            $schema = $this->getSchema();

            foreach ((array) $fields as $field) {
                if ($schema->hasColumn($field)) {
                    return $field;
                }
            }

            return $this->getPrimaryKey();
        });
    }
public function getDisplayField() {
        return $this->cache(__METHOD__, function() {
            $fields = $this->getConfig('displayField');
            $schema = $this->getSchema();

            foreach ((array) $fields as $field) {
                if ($schema->hasColumn($field)) {
                    return $field;
                }
            }

            return $this->getPrimaryKey();
        });
    }
public function getDisplayField ( ) { return $ this -> cache ( __METHOD__ , function ( ) { $ fields = $ this -> getConfig ( 'displayField' ) ; $ schema = $ this -> getSchema ( ) ; foreach ( ( array ) $ fields as $ field ) { if ( $ schema -> hasColumn ( $ field ) ) { return $ field ; } } return $ this -> getPrimaryKey ( ) ; } ) ; }
Return the field used as the display field.

@return string
Return the field used as the display field .