Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for _team_ (0.12 sec)

  1. tests/associations_has_many_test.go

    	if err := DB.Model(&user2).Association("Team").Append(&teams); err != nil {
    		t.Fatalf("Error happened when append team, got %v", err)
    	}
    
    	for _, team := range teams {
    		team := team
    		if team.ID == 0 {
    			t.Fatalf("Team's ID should be created")
    		}
    
    		user.Team = append(user.Team, team)
    	}
    
    	CheckUser(t, user2, user)
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 16K bytes
    - Viewed (0)
  2. tests/associations_many2many_test.go

    		*GetUser("slice-many2many-1", Config{Team: 2}),
    		*GetUser("slice-many2many-2", Config{Team: 0}),
    		*GetUser("slice-many2many-3", Config{Team: 4}),
    	}
    
    	DB.Create(&users)
    
    	// Count
    	AssertAssociationCount(t, users, "Team", 6, "")
    
    	// Find
    	var teams []User
    	if DB.Model(&users).Association("Team").Find(&teams); len(teams) != 6 {
    		t.Errorf("teams count should be %v, but got %v", 6, len(teams))
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sat Jun 10 13:05:19 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  3. tests/create_test.go

    		*GetUser("bulk_5", Config{Account: false, Pets: 0, Toys: 3, Company: true, Manager: false, Team: 1, Languages: 3, Friends: 1}),
    		*GetUser("bulk_6", Config{Account: true, Pets: 4, Toys: 3, Company: false, Manager: true, Team: 1, Languages: 3, Friends: 0}),
    		*GetUser("bulk_7", Config{Account: true, Pets: 1, Toys: 3, Company: true, Manager: true, Team: 4, Languages: 3, Friends: 1}),
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 09:55:20 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  4. tests/update_test.go

    	result.Team = append(user.Team, result.Team...)
    	result.Friends = append(user.Friends, result.Friends...)
    
    	sort.Slice(result.Pets, func(i, j int) bool {
    		return result.Pets[i].ID < result.Pets[j].ID
    	})
    	sort.Slice(result.Team, func(i, j int) bool {
    		return result.Team[i].ID < result.Team[j].ID
    	})
    	sort.Slice(result.Friends, func(i, j int) bool {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  5. tests/preload_test.go

    	user := *GetUser("user_without_associations", Config{})
    	DB.Create(&user)
    
    	DB.Preload("Team").Preload("Languages").Preload("Friends").First(&user, "name = ?", user.Name)
    
    	if r, err := json.Marshal(&user); err != nil {
    		t.Errorf("failed to marshal users, got error %v", err)
    	} else if !regexp.MustCompile(`"Team":\[\],"Languages":\[\],"Friends":\[\]`).MatchString(string(r)) {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 12 10:00:47 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  6. docs/en/docs/management-tasks.md

    These are the tasks that can be performed to manage the FastAPI repository by [team members](./fastapi-people.md#team){.internal-link target=_blank}.
    
    /// tip
    
    This section is useful only to a handful of people, team members with permissions to manage the repository. You can probably skip it. 😉
    
    ///
    
    ...so, you are a [team member of FastAPI](./fastapi-people.md#team){.internal-link target=_blank}? Wow, you are so cool! 😎
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  7. docs/en/docs/fastapi-people.md

    * Help [manage the repository](management-tasks.md){.internal-link target=_blank} (team members).
    
    All these tasks help maintain the repository.
    
    A round of applause to them. 👏 🙇
    
    ## Team
    
    This is the current list of team members. 😎
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Jan 28 20:34:56 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  8. docs/en/docs/contributing.md

    Once there are several people in the discussion, the FastAPI team can evaluate it and can make it an official translation.
    
    Then the docs will be automatically translated using AI, and the team of native speakers can review the translation, and help tweak the AI prompts.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Jul 26 11:35:42 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  9. docs/vi/docs/index.md

    * Cả hai _đường dẫn_ sử dụng toán tử `GET` (cũng đươc biết đến là _phương thức_ HTTP).
    * _Đường dẫn_ `/items/{item_id}` có một _tham số đường dẫn_ `item_id`, nó là một tham số kiểu `int`.
    * _Đường dẫn_ `/items/{item_id}`  có một _tham số query string_ `q`, nó là một tham số tùy chọn kiểu `str`.
    
    ### Tài liệu tương tác API
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  10. tests/joins_test.go

    		DB.Create(user)
    		userIDs = append(userIDs, user.ID)
    	}
    
    	var entries []User
    	assert.NotPanics(t, func() {
    		assert.NoError(t,
    			DB.Preload("Manager.Team").
    				Joins("Manager.Company").
    				Find(&entries).Error)
    	})
    }
    
    func TestJoinsPreload_Issue7013_RelationEmpty(t *testing.T) {
    	type (
    		Furniture struct {
    			gorm.Model
    			OwnerID *uint
    		}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 15K bytes
    - Viewed (0)
Back to top