protected function subProcess(JoinCapableQuery $query, DBField $field) { // if need to exclude change field to NULL if (array_key_exists($field->getField(), $this->excludedFields)) { $value = $this->excludedFields[$field->getField()]; $query->get(is_null($value) ? new DBNull() : new DBValue($value), $field->getField()); } else { $query->get($field); } }