static public function retrieveTree(Criteria $criteria = null, ConnectionInterface $con = null)
    {
        if (null === $criteria) {
            $criteria = new Criteria(CategoryTableMap::DATABASE_NAME);
        }
        $criteria->addAscendingOrderByColumn(ChildCategory::LEFT_COL);

        return ChildCategoryQuery::create(null, $criteria)->find($con);
    }
static public function retrieveTree(Criteria $criteria = null, ConnectionInterface $con = null)
    {
        if (null === $criteria) {
            $criteria = new Criteria(CategoryTableMap::DATABASE_NAME);
        }
        $criteria->addAscendingOrderByColumn(ChildCategory::LEFT_COL);

        return ChildCategoryQuery::create(null, $criteria)->find($con);
    }
static public function retrieveTree ( Criteria $ criteria = null , ConnectionInterface $ con = null ) { if ( null === $ criteria ) { $ criteria = new Criteria ( CategoryTableMap :: DATABASE_NAME ) ; } $ criteria -> addAscendingOrderByColumn ( ChildCategory :: LEFT_COL ) ; return ChildCategoryQuery :: create ( null , $ criteria ) -> find ( $ con ) ; }
Returns the whole tree node for a given scope

@param      Criteria $criteria    Optional Criteria to filter the query
@param      ConnectionInterface $con    Connection to use.
@return     ChildCategory[]|ObjectCollection|mixed the list of results, formatted by the current formatter
Returns the whole tree node for a given scope