anchor.diff:  							<%- if opts.key? :foreign_key -%>
   								sql := fmt.Sprintf("UPDATE <%= opts[:class_name].underscore.pluralize %> SET <%= opts[:foreign_key] %> = 0 WHERE <%= opts[:foreign_key] %> IN (?%s)", idsHolder)
   							<%- else -%>
  -								sql := fmt.Sprintf("UPDATE <%= opts[:class_name].underscore.pluralize %> SET <%= model_name_underscore %>_id = 0 WHERE <%= model_name_underscore %>_id IN (?%s)", idsHolder)
  +								sql := fmt.Sprintf("UPDATE <%= opts[:class_name].underscore.pluralize %> SET <%= var_umn %>_id = 0 WHERE <%= var_umn %>_id IN (?%s)", idsHolder)
   							<%- end -%>
   							_, err = Update<%= opts[:class_name].pluralize %>BySql(sql, idsT...)
   							if err != nil {
  
positive.code: <%- end -%>
  
  // Destroy is method used for a <%= @model_name %> object to be destroyed.
  func (_<%= model_name_underscore %> *<%= @model_name %>) Destroy() error {
  	if _<%= model_name_underscore %>.Id == 0 {
  		return errors.New("Invalid Id field: it can't be a zero value")
  	}
  	err := Destroy<%= @model_name %>(_<%= model_name_underscore %>.Id)
  	return err
  }
  
  
negative.code: }
  
  // Create is a method for <%= @model_name %> to create a record
  func (_<%= var_umn %> *<%= @model_name %>) Create() (int64, error) {
  	ok, err := govalidator.ValidateStruct(_<%= var_umn %>)
  	if !ok {
  		errMsg := "Validate <%= @model_name %> struct error: Unknown error"
  		if err != nil {
  