public function getList()
    {
        return $this->find('list')
            ->order([$this->getDisplayField() => 'ASC'])
            ->cache(sprintf('%s_list', $this->getTable()), $this->getCacheName());
    }
public function getList()
    {
        return $this->find('list')
            ->order([$this->getDisplayField() => 'ASC'])
            ->cache(sprintf('%s_list', $this->getTable()), $this->getCacheName());
    }
public function getList ( ) { return $ this -> find ( 'list' ) -> order ( [ $ this -> getDisplayField ( ) => 'ASC' ] ) -> cache ( sprintf ( '%s_list' , $ this -> getTable ( ) ) , $ this -> getCacheName ( ) ) ; }
Gets records as list
@return Query $query Query object
@uses getCacheName()
Gets records as list