public function getSuggestionsForAutoComplete($query)
    {
        $models = $this->repository->findByFilter( array( 'name' => $query ) );

        return $this->convertToAutoComplete( $models );
    }
public function getSuggestionsForAutoComplete($query)
    {
        $models = $this->repository->findByFilter( array( 'name' => $query ) );

        return $this->convertToAutoComplete( $models );
    }
public function getSuggestionsForAutoComplete ( $ query ) { $ models = $ this -> repository -> findByFilter ( array ( 'name' => $ query ) ) ; return $ this -> convertToAutoComplete ( $ models ) ; }
Get all models that match a particular query string as an auto complete list

@param   string $query   Query string that is used to filter the results
@return array
Get all models that match a particular query string as an auto complete list