colorModel = $colorModel; return $this; } /** * Get search attribute * * @access public * @return string[] */ public function getAttributes() { return array('color', 'colour'); } /** * Apply filter * * @access public * @return FilterInterface */ public function apply() { $this->query->eq(TaskModel::TABLE.'.color_id', $this->colorModel->find($this->value)); return $this; } }