diff --git a/src/xPDO/Om/xPDOQuery.php b/src/xPDO/Om/xPDOQuery.php index 5936ca61..36c0fca1 100644 --- a/src/xPDO/Om/xPDOQuery.php +++ b/src/xPDO/Om/xPDOQuery.php @@ -134,6 +134,12 @@ public function __construct(& $xpdo, $class, $criteria= null) { } } } + if ($operators = json_decode($this->xpdo->getOption('allowed_sql_operators', null, ''))) { + if (is_array($operators)) $this->_operators = array_unique(array_merge($this->_operators, $operators)); + } + if ($operators = json_decode($this->xpdo->getOption('denied_sql_operators', null, ''))) { + if (is_array($operators)) $this->_operators = array_diff($this->_operators, $operators); + } } /**