original_string: public function retrieveByPartialHeadline($query)
      {
          $query = $this->createQueryBuilder('q')
              ->select('q.id, q.headline')
              ->where('q.headline LIKE :query')
              ->orderBy('q.publishAt', 'DESC')
              ->setParameter('query','%'.$query.'%')
              ->getQuery();
  
          return $query->getArrayResult();
      }
code: public function retrieveByPartialHeadline($query)
      {
          $query = $this->createQueryBuilder('q')
              ->select('q.id, q.headline')
              ->where('q.headline LIKE :query')
              ->orderBy('q.publishAt', 'DESC')
              ->setParameter('query','%'.$query.'%')
              ->getQuery();
  
          return $query->getArrayResult();
      }
code_tokens: public function retrieveByPartialHeadline ( $ query ) { $ query = $ this -> createQueryBuilder ( 'q' ) -> select ( 'q.id, q.headline' ) -> where ( 'q.headline LIKE :query' ) -> orderBy ( 'q.publishAt' , 'DESC' ) -> setParameter ( 'query' , '%' . $ query . '%' ) -> getQuery ( ) ; return $ query -> getArrayResult ( ) ; }
docstring: used for autocomplete in admin
  
  @param string $query
  
  @return array
docstring_tokens: used for autocomplete in admin