X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman%2FRoo.php;h=d459e6d9c3b149923c29e094c1aa64eb986214bb;hb=901df19696071f172974b58b0f12b7eb853714cd;hp=e00d0afb3423acabc2971c18a4c18532cdd7002e;hpb=b8c2b8c16cd4936052a16909e0dca70cd90487d7;p=Pman.Base diff --git a/Pman/Roo.php b/Pman/Roo.php index e00d0af..d459e6d 100644 --- a/Pman/Roo.php +++ b/Pman/Roo.php @@ -865,6 +865,13 @@ class Pman_Roo extends Pman // value is an array.. if (is_array($val) ) { + $pref = ''; + + if ($key[0] == '!') { + $pref = '!'; + $key = substr($key,1); + } + if (!in_array( $key, array_keys($this->cols))) { continue; } @@ -888,10 +895,10 @@ class Pman_Roo extends Pman if (count($ar)) { - $x->whereAddIn( + $x->whereAddIn($pref . ( isset($this->colsJname[$key]) ? $this->colsJname[$key] : - ($x->tableName(). '.'.$key), + ($x->tableName(). '.'.$key)), $ar, $quote ? 'string' : 'int'); }