src/ngrest/plugins/SelectModel.php
public function getValueField()
    {
        if ($this->_valueField === null) {
            $class = $this->modelClass;
            $this->_valueField = implode("", $class::primaryKey());
        }
        
        return $this->_valueField;
    }
public function getValueField()
    {
        if ($this->_valueField === null) {
            $class = $this->modelClass;
            $this->_valueField = implode("", $class::primaryKey());
        }
        
        return $this->_valueField;
    }
public function getValueField ( ) { if ( $ this -> _valueField === null ) { $ class = $ this -> modelClass ; $ this -> _valueField = implode ( "" , $ class :: primaryKey ( ) ) ; } return $ this -> _valueField ; }
Getter Method for valueField.

If no value is provided it will auto matically return the primary key of the derived model class.

@return string The primary key from `modelClass`.
Getter Method for valueField .