DataObjects/Office.php
authorChris <chris@roojs.com>
Wed, 9 Jan 2013 06:54:58 +0000 (14:54 +0800)
committerChris <chris@roojs.com>
Wed, 9 Jan 2013 06:54:58 +0000 (14:54 +0800)
DataObjects/Office.php

index c7784d7..361a1e4 100644 (file)
@@ -35,15 +35,15 @@ class Pman_Core_DataObjects_Office extends DB_DataObject
             $this->_extra_col = array('office_country_name');
             $this->_distinct= 'office_id_country&cols=office_id_country,office_id_country_name';
             //then the query should be _distinct=office_id_country&cols=office_id_country,office_id_country_name
-            $p = DB_DataObject::factory('Person');
-            $p->whereAdd("office_id > 0");
-            $p->selectAdd();
-            $p->selectAdd("DISTINCT(office_id) as office_id");
-            $officeIds = $p->fetchAll('office_id');
-            $this->whereAddIn($tn.'.id', $officeIds, 'INT');
-            $this->selectAdd();
-            $this->selectAdd("DISTINCT({$tn}.country) as country");
-            $this->joinAddCountryWithPerson();
+//            $p = DB_DataObject::factory('Person');
+//            $p->whereAdd("office_id > 0");
+//            $p->selectAdd();
+//            $p->selectAdd("DISTINCT(office_id) as office_id");
+//            $officeIds = $p->fetchAll('office_id');
+//            $this->whereAddIn($tn.'.id', $officeIds, 'INT');
+//            $this->selectAdd();
+//            $this->selectAdd("DISTINCT({$tn}.country) as country");
+//            $this->joinAddCountryWithPerson();
         }
     }