anchor.diff:  	return ids, nil
   }
   
  -// <%= @model_name %>Ids get all the Ids of <%= @model_name %> records by where restriction
  +// <%= @model_name %>IdsWhere get all the Ids of <%= @model_name %> records by where restriction
   func <%= @model_name %>IdsWhere(where string, args ...interface{}) ([]int64, error) {
   	ids, err := <%= @model_name %>IntCol("id", where, args...)
   	return ids, err
  
positive.code: }
  <%- end -%>
  
  func (var_<%= model_name_underscore %> *<%= @model_name %>) Save() error {
  	ok, err := govalidator.ValidateStruct(var_<%= model_name_underscore %>)
  	if !ok {
  		errMsg := "Validate <%= @model_name %> struct error: Unknown error"
  		if err != nil {
  
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 %> = vv
  