DataObjects/Office.php
authorChris <chris@roojs.com>
Wed, 9 Jan 2013 07:27:30 +0000 (15:27 +0800)
committerChris <chris@roojs.com>
Wed, 9 Jan 2013 07:27:30 +0000 (15:27 +0800)
DataObjects/Office.php

index 361a1e4..28f3359 100644 (file)
@@ -29,11 +29,11 @@ class Pman_Core_DataObjects_Office extends DB_DataObject
         //DB_DataObject::debugLevel(1);
         
         if(!empty($q['_join_country_with_person'])){
-            $tn = $this->tableName();
-//            $this->selectAdd();
-            $this->selectAdd(" i18n_translate('c' , Office.country, 'en') as office_id_country_name");
-            $this->_extra_col = array('office_country_name');
-            $this->_distinct= 'office_id_country&cols=office_id_country,office_id_country_name';
+//            $tn = $this->tableName();
+////            $this->selectAdd();
+//            $this->selectAdd(" i18n_translate('c' , Office.country, 'en') as office_id_country_name");
+//            $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");