public function where($expression, $parameters = null) { $types = array('host' => 1, 'service' => 2, 'contact' => 10); if ($expression === 'object_type') { parent::where('object_type_id', $types[$parameters]); } else { parent::where($expression, $parameters); } return $this; }
public function where($condition, $value = null) { $this->filter->addFilter(Filter::where($condition, $value)); $this->query->where($condition, $value); return $this; }
public function where($condition, $value = null) { $this->query->where($condition, $value); return $this; }