anchor.diff:  	}
   	<%- if @struct_info[:has_assoc_dependent] -%>
   	ids, x_err := <%= @model_name %>IdsWhere(where, args...)
  +	if x_err != nil {
  +		log.Printf("Delete associated objects error: %v\n", x_err)
  +	} else {
  +		destroy<%= @model_name %>Associations(ids...)
  +	}
   	<%- end -%>
   	stmt, err := db.Preparex(db.Rebind(sql))
   	result, err := stmt.Exec(args...)
  
positive.code: }
  
  func Destroy<%= @model_name %>(id int64) error {
  	stmt, err := db.Preparex(db.Rebind(`DELETE FROM <%= table_name %> WHERE id = ?`))
  	_, err = stmt.Exec(id)
  	if err != nil {
  		return err
  	}
  	<%- if @struct_info[:has_assoc_dependent] -%>
  	// not care if exec properly temporarily
  	destroy<%= @model_name %>Associations(id)
      <%- end -%>
  	return nil
  }
  
  
negative.code: 		log.Println(msg)
  		return 0, errors.New(msg)
  	}
  	<%- if @struct_info[:has_assoc_dependent] -%>
  	// Destroy association objects at first
  	// Not care if exec properly temporarily
  	destroy<%= @model_name %>Associations(ids...)
  	<%- end -%>
  	idsHolder := strings.Repeat(",?", len(ids)-1)
  	sql := fmt.Sprintf(`DELETE FROM <%= table_name %> WHERE id IN (?%s)`, idsHolder)
  	idsT := []interface{}{}
  