anchor.diff:  	return nil
   }
   
  -func (var_<%= model_name_underscore %> *<%= @model_name %>) Update(am map[string]interface{}) error {
  -	if var_<%= model_name_underscore %>.Id == 0 {
  +func (_<%= model_name_underscore %> *<%= @model_name %>) Update(am map[string]interface{}) error {
  +	if _<%= model_name_underscore %>.Id == 0 {
   		return errors.New("Invalid Id field: it can't be a zero value")
   	}
  -	err := Update<%= @model_name %>(var_<%= model_name_underscore %>.Id, am)
  +	err := Update<%= @model_name %>(_<%= model_name_underscore %>.Id, am)
   	return err
   }
   
  -func (var_<%= model_name_underscore %> *<%= @model_name %>) UpdateAttributes(am map[string]interface{}) error {
  -	if var_<%= model_name_underscore %>.Id == 0 {
  +func (_<%= model_name_underscore %> *<%= @model_name %>) UpdateAttributes(am map[string]interface{}) error {
  +	if _<%= model_name_underscore %>.Id == 0 {
   		return errors.New("Invalid Id field: it can't be a zero value")
   	}
  -	err := Update<%= @model_name %>(var_<%= model_name_underscore %>.Id, am)
  +	err := Update<%= @model_name %>(_<%= model_name_underscore %>.Id, am)
   	return err
   }
   
  -func (var_<%= model_name_underscore %> *<%= @model_name %>) UpdateColumns(am map[string]interface{}) error {
  -	if var_<%= model_name_underscore %>.Id == 0 {
  +func (_<%= model_name_underscore %> *<%= @model_name %>) UpdateColumns(am map[string]interface{}) error {
  +	if _<%= model_name_underscore %>.Id == 0 {
   		return errors.New("Invalid Id field: it can't be a zero value")
   	}
  -	err := Update<%= @model_name %>(var_<%= model_name_underscore %>.Id, am)
  +	err := Update<%= @model_name %>(_<%= model_name_underscore %>.Id, am)
   	return err
   }
   
  
positive.code: 				case "<%= k.underscore.pluralize %>":
  				    <%- if v[:through] || v[:as] -%>
  						// FIXME: optimize the query
  						for i, vvv := range  var_<%= param_name_plural %> {
  							var_<%= v[:class_name].underscore.pluralize %>, err := <%= @model_name %>Get<%= v[:class_name].pluralize %>(vvv.Id)
  							if err != nil {
  								continue
  							}
  							vvv.<%= k %> = var_<%= v[:class_name].underscore.pluralize %>
  						    var_<%= param_name_plural %>[i] = vvv
  						}
  					<%- else -%>
  						<%- if v[:foreign_key] -%>
  
negative.code: 						<%- else -%>
  							where := fmt.Sprintf("<%= model_name_underscore %>_id IN (?%s)", idsHolder)
  						<%- end -%>
  						_<%= v[:class_name].underscore.pluralize %>, err := Find<%= v[:class_name].pluralize %>Where(where, ids...)
  						if err != nil {
  							log.Printf("Error when query associated objects: %v\n", assoc)
  							continue
  						}
  						for _, vv := range _<%= v[:class_name].underscore.pluralize %> {
  							for i, vvv := range  _<%= param_name_plural %> {
  								<%- if v[:foreign_key] -%>
  									if vv.<%= v[:foreign_key].camelize %> == vvv.Id {
  										vvv.<%= k %> = append(vvv.<%= k %>, vv)
  