DataObjects/core.sql
[Pman.Core] / DataObjects / Events.php
index 5219cad..0d89d1c 100644 (file)
@@ -190,7 +190,9 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
             
         }
         // since roo does not support autojoin yet..
-        $this->autoJoinExtra();
+        if (!isset($q['_distinct'])) {
+            $this->autoJoinExtra();
+        }
         
         
         
@@ -204,6 +206,8 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
         // DB_DataObject::debugLevel(1);
         
         // now try and magically join person_table to the right table..
+        return;
+        // this does not work on postgres.. 
         $tn = $this->tableName();
         $pt = DB_DataObject::Factory($this->tableName());
         $pt->selectAdD();