- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Larentis (0.15 sec)
-
utils/tests/models.go
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_belongs_to_test.go
} var parents []ItemParent if err := tx.Find(&parents).Error; err != nil { t.Errorf("failed to find item parent, got error: %v", err) } if len(parents) != 1 { t.Errorf("expected %d parents, got %d", 1, len(parents)) } // test delete if err := tx.Model(&item).Association("ItemParent").Unscoped().Delete(&parents); err != nil {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Oct 30 09:15:49 GMT 2023 - 9.3K bytes - Viewed (0)