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);
                }
            }
        }
    }
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);
                }
            }
        }
    }
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 ) ; } } } }
Add filters fields to query

@param ModelCriteria $query
Add filters fields to query