put back old Schema::toPTree() method