- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for bloga (0.26 sec)
-
tests/multi_primary_keys_test.go
}, } DB.Save(&blog) blog2 := Blog{ ID: blog.ID, Locale: "EN", } DB.Create(&blog2) if !compareTags(blog.SharedTags, []string{"tag1", "tag2"}) { t.Fatalf("Blog should has two tags") } // Append tag3 := &Tag{Locale: "ZH", Value: "tag3"} DB.Model(&blog).Association("SharedTags").Append([]*Tag{tag3}) if !compareTags(blog.SharedTags, []string{"tag1", "tag2", "tag3"}) {
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Thu Jan 06 07:02:53 GMT 2022 - 12.8K bytes - Viewed (0) -
schema/relationship_test.go
Relation{ Name: "Tags", Type: schema.Many2Many, Schema: "Blog", FieldSchema: "Tag", JoinTable: JoinTable{Name: "blog_tags", Table: "blog_tags"}, References: []Reference{ {"ID", "Blog", "BlogID", "blog_tags", "", true}, {"Locale", "Blog", "BlogLocale", "blog_tags", "", true}, {"ID", "Tag", "TagID", "blog_tags", "", false}, {"Locale", "Tag", "TagLocale", "blog_tags", "", false}, }, },
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Mon Apr 15 03:20:20 GMT 2024 - 25.5K bytes - Viewed (0)