mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: add EqualFold and ContainsFold to string IDs (#3382)
This commit is contained in:
@@ -1723,7 +1723,7 @@ func (f Field) enums(lf *load.Field) ([]Enum, error) {
|
||||
// Ops returns all predicate operations of the field.
|
||||
func (f *Field) Ops() []Op {
|
||||
ops := fieldOps(f)
|
||||
if f.Name != "id" && f.cfg != nil && f.cfg.Storage.Ops != nil {
|
||||
if (f.Name != "id" || !f.HasGoType()) && f.cfg != nil && f.cfg.Storage.Ops != nil {
|
||||
ops = append(ops, f.cfg.Storage.Ops(f)...)
|
||||
}
|
||||
return ops
|
||||
|
||||
Reference in New Issue
Block a user