Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 152 for Vriens (0.22 sec)

  1. tests/update_many2many_test.go

    		DB.Create(&lang)
    	}
    	user.Friends = []*User{{Name: "friend-1"}, {Name: "friend-2"}}
    
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user2 User
    	DB.Preload("Languages").Preload("Friends").Find(&user2, "id = ?", user.ID)
    	CheckUser(t, user2, user)
    
    	for idx := range user.Friends {
    		user.Friends[idx].Name += "new"
    	}
    
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  2. tests/helper_test.go

    		}
    	})
    
    	t.Run("Friends", func(t *testing.T) {
    		if len(user.Friends) != len(expect.Friends) {
    			t.Fatalf("Friends should equal, expect: %v, got %v", len(expect.Friends), len(user.Friends))
    		}
    
    		sort.Slice(user.Friends, func(i, j int) bool {
    			return user.Friends[i].ID > user.Friends[j].ID
    		})
    
    		sort.Slice(expect.Friends, func(i, j int) bool {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 8K bytes
    - Viewed (0)
  3. tests/associations_many2many_test.go

    	// Append
    	friend := *GetUser("friend", Config{})
    
    	if err := DB.Model(&user2).Association("Friends").Append(&friend); err != nil {
    		t.Fatalf("Error happened when append account, got %v", err)
    	}
    
    	user.Friends = append(user.Friends, &friend)
    	CheckUser(t, user2, user)
    
    	AssertAssociationCount(t, user, "Friends", 3, "AfterAppend")
    
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 13.2K bytes
    - Viewed (0)
  4. schema/schema_test.go

    			References: []Reference{{"ID", "User", "UserID", "UserSpeak", "", true}, {"Code", "Language", "LanguageCode", "UserSpeak", "", false}},
    		},
    		{
    			Name: "Friends", Type: schema.Many2Many, Schema: "User", FieldSchema: "User",
    			JoinTable: JoinTable{Name: "user_friends", Table: "user_friends", Fields: []schema.Field{
    				{
    					Name: "UserID", DBName: "user_id", BindNames: []string{"UserID"}, DataType: schema.Uint,
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Fri Dec 15 08:31:23 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  5. docs_src/python_types/tutorial011_py310.py

        id: int
        name: str = "John Doe"
        signup_ts: datetime | None = None
        friends: list[int] = []
    
    
    external_data = {
        "id": "123",
        "signup_ts": "2017-06-01 12:22",
        "friends": [1, "2", b"3"],
    }
    user = User(**external_data)
    print(user)
    # > User id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3]
    print(user.id)
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Sep 02 15:56:35 GMT 2023
    - 461 bytes
    - Viewed (0)
  6. src/main/webapp/css/admin/plugins/timepicker/bootstrap-timepicker.min.css

    play:inline-block;position:absolute}.bootstrap-timepicker-widget.timepicker-orient-left:before{left:6px}.bootstrap-timepicker-widget.timepicker-orient-left:after{left:7px}.bootstrap-timepicker-widget.timepicker-orient-right:before{right:6px}.bootstrap-timepicker-widget.timepicker-orient-right:after{right:7px}.bootstrap-timepicker-widget.timepicker-orient-top:before{top:-7px}.bootstrap-timepicker-widget.timepicker-orient-top:after{top:-6px}.bootstrap-timepicker-widget.timepicker-orient-bottom:bef...
    CSS
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 13 04:21:06 GMT 2020
    - 3K bytes
    - Viewed (0)
  7. tests/update_test.go

    	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 {
    		return result.Friends[i].ID < result.Friends[j].ID
    	})
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Dec 04 03:50:58 GMT 2023
    - 30.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        URLClassLoader sepLoader = new URLClassLoader(getClassPathUrls(), myLoader.getParent());
        // sepLoader is the loader that we will use to load the parallel FinalizableReferenceQueue (FRQ)
        // and friends, and that we will eventually expect to see garbage-collected. The assumption
        // is that the ClassLoader of this test is a URLClassLoader, and that it loads FRQ itself
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  9. tests/delete_test.go

    		*GetUser("delete_slice_with_associations2", Config{Account: true, Pets: 3, Toys: 2, Company: true, Manager: true, Team: 2, Languages: 2, Friends: 3}),
    		*GetUser("delete_slice_with_associations3", Config{Account: true, Pets: 2, Toys: 3, Company: true, Manager: true, Team: 3, Languages: 3, Friends: 2}),
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Tue Oct 10 07:03:34 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  10. docs_src/python_types/tutorial011_py39.py

        id: int
        name: str = "John Doe"
        signup_ts: Union[datetime, None] = None
        friends: list[int] = []
    
    
    external_data = {
        "id": "123",
        "signup_ts": "2017-06-01 12:22",
        "friends": [1, "2", b"3"],
    }
    user = User(**external_data)
    print(user)
    # > User id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3]
    print(user.id)
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Sep 02 15:56:35 GMT 2023
    - 492 bytes
    - Viewed (0)
Back to top