protected function convertToSelectList($includeNull, $models)
    {
        $results = array();
        if( $includeNull ) {
            $results[ 0 ] = '';
        }

        foreach( $models as $model ) {
            $results[ $model->id ] = $this->getName( $model );
        }

        return $results;
    }
protected function convertToSelectList($includeNull, $models)
    {
        $results = array();
        if( $includeNull ) {
            $results[ 0 ] = '';
        }

        foreach( $models as $model ) {
            $results[ $model->id ] = $this->getName( $model );
        }

        return $results;
    }
protected function convertToSelectList ( $ includeNull , $ models ) { $ results = array ( ) ; if ( $ includeNull ) { $ results [ 0 ] = '' ; } foreach ( $ models as $ model ) { $ results [ $ model -> id ] = $ this -> getName ( $ model ) ; } return $ results ; }
Convert the selected models for a select list

@param Collection $models
@return array
Convert the selected models for a select list