original_string: public function findTreeList(Query $query, array $options)
      {
          $left = $this->_table->aliasField($this->getConfig('left'));
  
          $results = $this->_scope($query)
              ->find('threaded', [
                  'parentField' => $this->getConfig('parent'),
                  'order' => [$left => 'ASC'],
              ]);
  
          return $this->formatTreeList($results, $options);
      }
code: public function findTreeList(Query $query, array $options)
      {
          $left = $this->_table->aliasField($this->getConfig('left'));
  
          $results = $this->_scope($query)
              ->find('threaded', [
                  'parentField' => $this->getConfig('parent'),
                  'order' => [$left => 'ASC'],
              ]);
  
          return $this->formatTreeList($results, $options);
      }
code_tokens: public function findTreeList ( Query $ query , array $ options ) { $ left = $ this -> _table -> aliasField ( $ this -> getConfig ( 'left' ) ) ; $ results = $ this -> _scope ( $ query ) -> find ( 'threaded' , [ 'parentField' => $ this -> getConfig ( 'parent' ) , 'order' => [ $ left => 'ASC' ] , ] ) ; return $ this -> formatTreeList ( $ results , $ options ) ; }
docstring: Gets a representation of the elements in the tree as a flat list where the keys are
  the primary key for the table and the values are the display field for the table.
  Values are prefixed to visually indicate relative depth in the tree.
  
  ### Options
  
  - keyPath: A dot separated path to fetch the field to use for the array key, or a closure to
  return the key out of the provided row.
  - valuePath: A dot separated path to fetch the field to use for the array value, or a closure to
  return the value out of the provided row.
  - spacer: A string to be used as prefix for denoting the depth in the tree for each item
  
  @param \Cake\ORM\Query $query Query.
  @param array $options Array of options as described above.
  @return \Cake\ORM\Query
docstring_tokens: Gets a representation of the elements in the tree as a flat list where the keys are the primary key for the table and the values are the display field for the table . Values are prefixed to visually indicate relative depth in the tree .