public function __construct($where, $operator = 'AND')
{
foreach ($where as $column => $value) {
if ($value === null) {
$where[$column] = Restrictions::isNull();
}
}
$this->where = $where;
$this->values = Arrays::flatten(array_values($where));
$this->operator = $operator;
}