protected function convertToAutoComplete($models)
    {
        $results = array();
        foreach( $models as $model ) {
            $results[] = array(
                'data'          => $model->id,
                'value'         => $this->getName( $model )
            );
        }

        return $results;
    }
protected function convertToAutoComplete($models)
    {
        $results = array();
        foreach( $models as $model ) {
            $results[] = array(
                'data'          => $model->id,
                'value'         => $this->getName( $model )
            );
        }

        return $results;
    }
protected function convertToAutoComplete ( $ models ) { $ results = array ( ) ; foreach ( $ models as $ model ) { $ results [ ] = array ( 'data' => $ model -> id , 'value' => $ this -> getName ( $ model ) ) ; } return $ results ; }
Convert the selected models for an auto complete list

@param Collection $models
@return array
Convert the selected models for an auto complete list