From 901df19696071f172974b58b0f12b7eb853714cd Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 30 Mar 2011 13:42:26 +0800 Subject: [PATCH] Pman/Roo.php --- Pman/Roo.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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'); } -- 2.39.2