Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for hasmany (0.05 sec)

  1. schema/relationship.go

    			relation.Type = HasOne
    		case reflect.Slice:
    			relation.Type = HasMany
    		}
    	}
    
    	if schema.err == nil {
    		schema.setRelation(relation)
    		switch relation.Type {
    		case HasOne:
    			schema.Relationships.HasOne = append(schema.Relationships.HasOne, relation)
    		case HasMany:
    			schema.Relationships.HasMany = append(schema.Relationships.HasMany, relation)
    		case BelongsTo:
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 16 04:11:05 UTC 2025
    - 23.1K bytes
    - Viewed (1)
  2. association.go

    			if association.Unscope && oldBelongsToExpr != nil {
    				association.Error = association.DB.Model(nil).Where(oldBelongsToExpr).Delete(reflect.New(rel.FieldSchema.ModelType).Interface()).Error
    			}
    		case schema.HasOne, schema.HasMany:
    			var (
    				primaryFields []*schema.Field
    				foreignKeys   []string
    				updateMap     = map[string]interface{}{}
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Oct 26 12:09:12 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  3. migrator/migrator.go

    	if uni, ok := uniqueConstraints[name]; ok {
    		return &uni, stmt.Table
    	}
    
    	getTable := func(rel *schema.Relationship) string {
    		switch rel.Type {
    		case schema.HasOne, schema.HasMany:
    			return rel.FieldSchema.Table
    		case schema.Many2Many:
    			return rel.JoinTable.Table
    		}
    		return stmt.Table
    	}
    
    	for _, rel := range stmt.Schema.Relationships.Relations {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Oct 26 12:31:09 UTC 2025
    - 29.7K bytes
    - Viewed (0)
  4. generics.go

    		}
    	}
    
    	assocDB := s.c.g.db.Session(&Session{NewDB: true, Context: ctx}).Model(assocModel).Where(op.Conditions)
    
    	switch rel.Type {
    	case schema.HasOne, schema.HasMany:
    		assocDB = assocDB.Where("? IN (?)", foreignColumns, base.Select(ownerPKNames))
    		switch op.Type {
    		case clause.OpUnlink:
    			return assocDB.Updates(fkNil).Error
    		case clause.OpDelete:
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                        } else {
                            return build.getDirectory();
                        }
                    };
                    boolean hasScript = false;
                    boolean hasMain = false;
                    boolean hasTest = false;
                    for (var source : sources) {
                        var src = DefaultSourceRoot.fromModel(session, baseDir, outputDirectory, source);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 17:20:31 UTC 2025
    - 51.8K bytes
    - Viewed (0)
  6. CHANGELOG/CHANGELOG-1.33.md

    ### Other (Cleanup or Flake)
    
    - Kubeadm: updated the supported etcd version to v3.5.24 for the skewed control plane version v1.33. ([#135018](https://github.com/kubernetes/kubernetes/pull/135018), [@hakman](https://github.com/hakman)) [SIG Cloud Provider, Cluster Lifecycle and Etcd]
    - Kubernetes is now built using Go 1.24.7 ([#134197](https://github.com/kubernetes/kubernetes/pull/134197), [@cpanato](https://github.com/cpanato)) [SIG Release and Testing]
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Wed Dec 10 01:15:24 UTC 2025
    - 334.8K bytes
    - Viewed (0)
  7. CHANGELOG/CHANGELOG-1.32.md

    ### Other (Cleanup or Flake)
    
    - Kubeadm: updated the supported etcd version to v3.5.24 for the skewed control plane version v1.33. ([#135019](https://github.com/kubernetes/kubernetes/pull/135019), [@hakman](https://github.com/hakman)) [SIG Cloud Provider, Cluster Lifecycle and Etcd]
    
    ## Dependencies
    
    ### Added
    _Nothing has changed._
    
    ### Changed
    - k8s.io/system-validators: v1.9.1 → v1.9.2
    
    ### Removed
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Tue Dec 16 18:27:41 UTC 2025
    - 448.1K bytes
    - Viewed (0)
  8. CHANGELOG/CHANGELOG-1.31.md

    ### Other (Cleanup or Flake)
    
    - Kubeadm: updated the supported etcd version to v3.5.24 for the skewed control plane version v1.33. ([#135020](https://github.com/kubernetes/kubernetes/pull/135020), [@hakman](https://github.com/hakman)) [SIG Cloud Provider, Cluster Lifecycle and Etcd]
    
    ## Dependencies
    
    ### Added
    _Nothing has changed._
    
    ### Changed
    _Nothing has changed._
    
    ### Removed
    _Nothing has changed._
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Wed Nov 12 11:33:21 UTC 2025
    - 451.9K bytes
    - Viewed (0)
Back to top