Pman/Roo.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 11 Nov 2010 04:47:16 +0000 (12:47 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 11 Nov 2010 04:47:16 +0000 (12:47 +0800)
Pman/Roo.php

index 634b146..3fad2f7 100644 (file)
@@ -819,7 +819,13 @@ class Pman_Roo extends Pman
                     
                 }
                 if (count($ar)) {
-                    $x->whereAddIn($x->tableName(). '.'.$key,$ar, $quote ? 'string' : 'int');
+                    
+                    
+                    $x->whereAddIn(
+                        isset($this->colsJoinName[$key]) ? 
+                            $this->colsJoinName[$key] :
+                            $x->tableName(). '.'.$key,
+                        $ar, $quote ? 'string' : 'int');
                 }
                 
                 continue;