- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Children (0.58 sec)
-
utils/tests/models.go
Desc string } type Order struct { gorm.Model Num string Coupon *Coupon CouponID string } type Parent struct { gorm.Model FavChildID uint FavChild *Child Children []*Child } type Child struct { gorm.Model Name string ParentID *uint Parent *Parent
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Fri Dec 15 08:36:08 GMT 2023 - 2.1K bytes - Viewed (0) -
tests/associations_test.go
parent.Children = []*Child{&child, &child1} DB.Save(&parent) var children []*Child DB.Where("parent_id = ?", parent.ID).Find(&children) if len(children) != len(parent.Children) || children[0].ID != parent.Children[0].ID || children[1].ID != parent.Children[1].ID { t.Errorf("circular reference children save not equal children:%v parent.Children:%v", children, parent.Children) } }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Wed Feb 08 08:29:09 GMT 2023 - 10.9K bytes - Viewed (0)