Show
Ignore:
Timestamp:
07/23/08 22:21:13 (6 months ago)
Author:
guilhermeblanco
Message:

Fixes #1268 and fixes #1260. Fixed test case of #1250. Updated documentation to support changes. Remove BC break of fetchTree and also Pager is now aware of Hydration mode defined in Query object.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/lib/Doctrine/Tree/Interface.php

    r4656 r4706  
    5151     * 
    5252     * @param array $options                    options 
    53      * @param integer $fetchmode  One of the Doctrine::HYDRATE_* constants. 
     53     * @param integer $fetchmode                One of the Doctrine::HYDRATE_* constants. 
    5454     * @return object $iterator                 instance of Doctrine_Node_<Implementation>_PreOrderIterator 
    5555     */ 
    56     public function fetchTree($options = array(), $hydrationMode = Doctrine::HYDRATE_RECORD); 
     56    public function fetchTree($options = array(), $hydrationMode = null); 
    5757 
    5858    /** 
     
    6161     * @param mixed $pk                         primary key as used by table::find() to locate node to traverse tree from 
    6262     * @param array $options                    options 
    63      * @param 
     63     * @param integer $fetchmode                One of the Doctrine::HYDRATE_* constants. 
    6464     * @return iterator                         instance of Doctrine_Node_<Implementation>_PreOrderIterator 
    6565     */ 
    66     public function fetchBranch($pk, $options = array(), $hydrationMode = Doctrine::HYDRATE_RECORD); 
     66    public function fetchBranch($pk, $options = array(), $hydrationMode = null); 
    6767}