Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ManagerID (0.15 sec)

  1. tests/helper_test.go

    		if user.Manager != nil {
    			if user.ManagerID == nil {
    				t.Errorf("Manager's foreign key should be saved")
    			} else {
    				var manager User
    				db(unscoped).First(&manager, "id = ?", *user.ManagerID)
    				AssertObjEqual(t, manager, user.Manager, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "Name", "Age",
    					"Birthday", "CompanyID", "ManagerID", "Active")
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. utils/tests/models.go

    	Account   Account
    	Pets      []*Pet
    	NamedPet  *Pet
    	Toys      []Toy   `gorm:"polymorphic:Owner"`
    	Tools     []Tools `gorm:"polymorphicType:Type;polymorphicId:CustomID"`
    	CompanyID *int
    	Company   Company
    	ManagerID *uint
    	Manager   *User
    	Team      []User     `gorm:"foreignkey:ManagerID"`
    	Languages []Language `gorm:"many2many:UserSpeak;"`
    	Friends   []*User    `gorm:"many2many:user_friends;"`
    	Active    bool
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. tests/associations_belongs_to_test.go

    	}
    
    	if manager.ID == 0 {
    		t.Fatalf("Manager's ID should be created")
    	}
    
    	user.Company = company
    	user.Manager = manager
    	user.CompanyID = &company.ID
    	user.ManagerID = &manager.ID
    	CheckUser(t, user2, user)
    
    	AssertAssociationCount(t, user2, "Company", 1, "AfterAppend")
    	AssertAssociationCount(t, user2, "Manager", 1, "AfterAppend")
    
    	// Replace
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  4. schema/model_test.go

    	Name      *string
    	Age       *uint
    	Birthday  *time.Time
    	Account   *tests.Account
    	Pets      []*tests.Pet
    	Toys      []*tests.Toy `gorm:"polymorphic:Owner"`
    	CompanyID *int
    	Company   *tests.Company
    	ManagerID *uint
    	Manager   *User
    	Team      []*User           `gorm:"foreignkey:ManagerID"`
    	Languages []*tests.Language `gorm:"many2many:UserSpeak"`
    	Friends   []*User           `gorm:"many2many:user_friends"`
    	Active    *bool
    }
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 1.1K bytes
    - Viewed (0)
Back to top