Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 699 for Has (0.13 sec)

  1. tests/associations_has_one_test.go

    }
    
    func TestPolymorphicHasOneAssociationForSlice(t *testing.T) {
    	pets := []Pet{
    		{Name: "hasone-1", Toy: Toy{Name: "toy-has-one"}},
    		{Name: "hasone-2", Toy: Toy{}},
    		{Name: "hasone-3", Toy: Toy{Name: "toy-has-one"}},
    	}
    
    	DB.Create(&pets)
    
    	// Count
    	AssertAssociationCount(t, pets, "Toy", 2, "")
    
    	// Find
    	var toys []Toy
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 6.8K bytes
    - Viewed (0)
  2. tests/update_has_many_test.go

    package tests_test
    
    import (
    	"testing"
    
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestUpdateHasManyAssociations(t *testing.T) {
    	user := *GetUser("update-has-many", Config{})
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	user.Pets = []*Pet{{Name: "pet1"}, {Name: "pet2"}}
    	if err := DB.Save(&user).Error; err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 2K bytes
    - Viewed (0)
  3. tests/update_has_one_test.go

    	"time"
    
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestUpdateHasOne(t *testing.T) {
    	user := *GetUser("update-has-one", Config{})
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	user.Account = Account{Number: "account-has-one-association"}
    
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jul 14 06:55:54 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  4. utils/tests/models.go

    	"time"
    
    	"gorm.io/gorm"
    )
    
    // User has one `Account` (has one), many `Pets` (has many) and `Toys` (has many - polymorphic)
    // He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table)
    // He speaks many languages (many to many) and has many friends (many to many - single-table)
    // His pet also has one Toy (has one - polymorphic)
    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)
  5. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt

                                "acceptation": "Deprecated method removed",
                                "changes": [
                                    "Method has been removed"
                                ]
                            },
    {
                                "type": "org.gradle.api.tasks.AbstractExecTask",
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Sep 30 18:18:04 GMT 2022
    - 7.5K bytes
    - Viewed (0)
  6. .github/stale.yml

    exemptAssignees: false
    
    # Label to use when marking as stale
    staleLabel: stale
    
    # Comment to post when marking as stale. Set to `false` to disable
    markComment: >-
      This issue has been automatically marked as stale because it has not had
      recent activity. It will be closed after 15 days if no further activity
      occurs. Thank you for your contributions.
    # Comment to post when removing the stale label.
    # unmarkComment: >
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 24 04:36:59 GMT 2022
    - 2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/FileNotifyInformation.java

        // actions returned
        /**
         * File has been added
         */
        public static final int FILE_ACTION_ADDED = 0x00000001;
        /**
         * File has been removed
         */
        public static final int FILE_ACTION_REMOVED = 0x00000002;
        /**
         * File has been modified
         */
        public static final int FILE_ACTION_MODIFIED = 0x00000003;
    
        /**
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.9K bytes
    - Viewed (0)
  8. maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/ArtifactTransformation.java

        String ROLE = ArtifactTransformation.class.getName();
    
        /**
         * Take in an artifact and return the transformed artifact for locating in the remote repository. If no
         * transformation has occurred the original artifact is returned.
         *
         * @param artifact           Artifact to be transformed.
         * @param request the repositories to check
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  9. maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/ArtifactTransformationManager.java

        String ROLE = ArtifactTransformationManager.class.getName();
    
        /**
         * Take in an artifact and return the transformed artifact for locating in the remote repository. If no
         * transformation has occurred the original artifact is returned.
         *
         * @param artifact           Artifact to be transformed.
         * @param request the repositories to check
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTaskIntegrationTest.kt

                                "acceptation": "Removed for Gradle 8.0",
                                "changes": [
                                    "Method has been removed"
                                ]
                            },
                            {
                                "type": "org.gradle.api.AntBuilder",
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Sep 30 18:18:04 GMT 2022
    - 6K bytes
    - Viewed (0)
Back to top