Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 54 for Associations (0.07 sec)

  1. statement.go

    			results[column] = result
    		} else if column == "*" {
    			notRestricted = result
    			for _, dbName := range stmt.Schema.DBNames {
    				results[dbName] = result
    			}
    		} else if column == clause.Associations {
    			for _, rel := range stmt.Schema.Relationships.Relations {
    				results[rel.Name] = result
    			}
    		} else if field := stmt.Schema.LookUpField(column); field != nil && field.DBName != "" {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  2. cmd/iam.go

    // When a policyName is given to this function, the policy association is
    // created and stored in the IAM store. Thus, it should NOT be given for the
    // role-arn case (because the role-to-policy mapping is separately stored
    // elsewhere), the AssumeRole case (because the parent user is real and their
    // policy is associated via policy-set API) and the AssumeRoleWithLDAP case
    // (because the policy association is made via policy-set API).
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 75.3K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    			res = append(res, k)
    			return true
    		})
    	}
    	return
    }
    
    // PolicyDBUpdate - adds or removes given policies to/from the user or group's
    // policy associations.
    func (store *IAMStoreSys) PolicyDBUpdate(ctx context.Context, name string, isGroup bool,
    	userType IAMUserType, policies []string, isAttach bool) (updatedAt time.Time,
    	addedOrRemoved, effectivePolicies []string, err error,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 86.7K bytes
    - Viewed (0)
  4. tests/multi_primary_keys_test.go

    	var tags3 []Tag
    	DB.Model(&blog).Association("Tags").Find(&tags3)
    	if !compareTags(tags3, []string{"tag6"}) {
    		t.Fatalf("Should find 1 tags after Delete")
    	}
    
    	if DB.Model(&blog).Association("Tags").Count() != 1 {
    		t.Fatalf("Blog should has three tags after Delete")
    	}
    
    	DB.Model(&blog).Association("Tags").Delete(tag3)
    	var tags4 []Tag
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  5. tests/named_polymorphic_test.go

    		t.Errorf("Should find has one polymorphic association")
    	}
    
    	hamsterToy = Toy{}
    	DB.Model(&hamster).Association("OtherToy").Find(&hamsterToy)
    	if hamsterToy.Name != hamster.OtherToy.Name {
    		t.Errorf("Should find has one polymorphic association")
    	}
    
    	// Append
    	DB.Model(&hamster).Association("PreferredToy").Append(&Toy{
    		Name: "bike 2",
    	})
    
    	DB.Model(&hamster).Association("OtherToy").Append(&Toy{
    		Name: "treadmill 2",
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jul 08 09:59:40 UTC 2020
    - 4.2K bytes
    - Viewed (0)
  6. tests/associations_has_many_test.go

    	}
    
    	// test delete
    	if err := tx.Model(&item).Association("Contents").Unscoped().Delete(&contents[0]); err != nil {
    		t.Errorf("failed to delete Contents, got error: %v", err)
    	}
    	if count := tx.Model(&item).Association("Contents").Count(); count != 2 {
    		t.Errorf("expected %d contents, got %d", 2, count)
    	}
    
    	// test clear
    	if err := tx.Model(&item).Association("Contents").Unscoped().Clear(); err != nil {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. tests/associations_has_one_test.go

    	// Find
    	var user2 User
    	DB.Find(&user2, "id = ?", user.ID)
    	DB.Model(&user2).Association("Account").Find(&user2.Account)
    	CheckUser(t, user2, user)
    
    	// Count
    	AssertAssociationCount(t, user, "Account", 1, "")
    
    	// Append
    	account := Account{Number: "account-has-one-append"}
    
    	if err := DB.Model(&user2).Association("Account").Append(&account); err != nil {
    		t.Fatalf("Error happened when append account, got %v", err)
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. tests/associations_belongs_to_test.go

    	// Clear
    	DB.Model(&users).Association("Company").Clear()
    	AssertAssociationCount(t, users, "Company", 0, "After Clear")
    
    	DB.Model(&users).Association("Manager").Clear()
    	AssertAssociationCount(t, users, "Manager", 0, "After Clear")
    
    	// shared company
    	company := Company{Name: "shared"}
    	if err := DB.Model(&users[0]).Association("Company").Append(&company); err != nil {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  9. api/maven-api-plugin/src/main/mdo/lifecycle.mdo

          <fields>
            <field>
              <name>lifecycles</name>
              <version>1.0.0+</version>
              <association xml.itemsStyle="flat">
                <type>Lifecycle</type>
                <multiplicity>*</multiplicity>
              </association>
            </field>
          </fields>
        </class>
        <class>
          <name>Lifecycle</name>
          <version>1.0.0+</version>
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sun May 18 09:15:56 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. api/maven-api-model/src/main/mdo/maven.mdo

              </description>
              <association>
                <type>License</type>
                <multiplicity>*</multiplicity>
              </association>
            </field>
            <field xdoc.separator="blank">
              <name>developers</name>
              <version>3.0.0+</version>
              <description>Describes the committers of a project.</description>
              <association>
                <type>Developer</type>
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Aug 07 14:32:16 UTC 2025
    - 132.7K bytes
    - Viewed (0)
Back to top