復合查詢的小BUG

浏览:176 发布日期:2010/02/02
- 普通 - 未处理
$map['_complex'] = $where;

如果有多個復合查詢呢 只有一個_complex呀 覆蓋了 就沒了。。$where['_logic'] = 'or';
$map['_complex'] = $where;

$new_where['_logic'] = 'and';

$map['_complex'] = array_merge($map['_complex'], $new_where);  //這樣又會覆蓋 _logic
评论(
后面还有条评论,点击查看>>