DataObjects/Office.php
authorChris <chris@roojs.com>
Tue, 8 Jan 2013 08:55:57 +0000 (16:55 +0800)
committerChris <chris@roojs.com>
Tue, 8 Jan 2013 08:55:57 +0000 (16:55 +0800)
DataObjects/Office.php

index 856c248..bd612a4 100644 (file)
@@ -35,7 +35,7 @@ class Pman_Core_DataObjects_Office extends DB_DataObject
         $p->selectAdd();
         $p->selectAdd("DISTINCT(office_id) as office_id");
         $officeIds = $p->fetchAll('office_id');
-        $this->whereAddIn('id', $officeIds, 'INT');
+        $this->whereAddIn('Office.id', $officeIds, 'INT');
         
 //        $this->whereAdd("
 //                {$tn}.id = (SELECT DISTINCT(office_id) FROM Person WHERE Person.office_id > 0)