original_string: protected function addFilters(ModelCriteria &$query)
      {
          if (count($this->query) > 0) {
              $tableMap = $this->getTableMap();
              foreach ($this->query as $field => $value) {
                  if (self::API_COMBO_FIELD === $field) {
                      ApiHelper::composerComboField($tableMap, $query, $this->extraColumns, $value);
                  } elseif(!preg_match('/^__/', $field)) {
                      ApiHelper::addModelField($tableMap, $query, $field, $value);
                  }
              }
          }
      }
code: protected function addFilters(ModelCriteria &$query)
      {
          if (count($this->query) > 0) {
              $tableMap = $this->getTableMap();
              foreach ($this->query as $field => $value) {
                  if (self::API_COMBO_FIELD === $field) {
                      ApiHelper::composerComboField($tableMap, $query, $this->extraColumns, $value);
                  } elseif(!preg_match('/^__/', $field)) {
                      ApiHelper::addModelField($tableMap, $query, $field, $value);
                  }
              }
          }
      }
code_tokens: protected function addFilters ( ModelCriteria & $ query ) { if ( count ( $ this -> query ) > 0 ) { $ tableMap = $ this -> getTableMap ( ) ; foreach ( $ this -> query as $ field => $ value ) { if ( self :: API_COMBO_FIELD === $ field ) { ApiHelper :: composerComboField ( $ tableMap , $ query , $ this -> extraColumns , $ value ) ; } elseif ( ! preg_match ( '/^__/' , $ field ) ) { ApiHelper :: addModelField ( $ tableMap , $ query , $ field , $ value ) ; } } } }
docstring: Add filters fields to query
  
  @param ModelCriteria $query
docstring_tokens: Add filters fields to query