EntityResolutionRulesResolved class

Implemented types

Constructors

EntityResolutionRulesResolved(EntityResolutionRules resolved, {required EntityResolutionRules? contextRules, required EntityResolutionRules? rules})
const

Properties

allEager → bool?
If true all types will be eager loaded.
no setteroverride
allLazy → bool?
If true all types will be lazy loaded.
no setteroverride
allowEntityFetch → bool
If true it will allow the use of on DB/repository to fetch an entity by an ID reference.
no setteroverride
allowReadFile → bool
If true it will allow calls to APIPlatform.readFileAsString and APIPlatform.readFileAsBytes.
no setteroverride
contextRules → EntityResolutionRules?
final
eagerEntityTypes → List<Type>?
Entities Type with eager load.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
isInnocuous → bool
Returns true if this instance is equivalent to innocuous instance (no resolution rules to apply).
no setteroverride
isValid → bool
Return true if this instance rules are valid.
no setteroverride
lazyEntityTypes → List<Type>?
Entities Type with lazy load.
no setteroverride
mergeTolerant → bool
If true it will be ignored on a conflicting merge.
no setteroverride
resolved → EntityResolutionRules
final
rules → EntityResolutionRules?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? allowEntityFetch, bool? allowReadFile, List<Type>? lazyEntityTypes, List<Type>? eagerEntityTypes, bool? allLazy, bool? allEager, bool? mergeTolerant, List<Type>? conflictingEntityTypes}) → EntityResolutionRules
Copies this instance, allowing fields overwrite.
override
isAnyEagerEntityType(Iterable<Type> types) → bool
override
isAnyEagerEntityTypeInfo(Iterable<TypeInfo> types) → bool
override
isAnyLazyEntityType(Iterable<Type> types) → bool
override
isAnyLazyEntityTypeInfo(Iterable<TypeInfo> types) → bool
override
isEagerEntityType(Type entityType, [bool def = false]) → bool
Returns true if entityType load is eager.
override
isEagerEntityTypeInfo(TypeInfo entityTypeInfo, [bool def = false]) → bool
Alias to isEagerEntityType with a TypeInfo parameter.
override
isLazyEntityType(Type entityType, [bool def = false]) → bool
Returns true if entityType load is lazy.
override
isLazyEntityTypeInfo(TypeInfo entityTypeInfo, [bool def = false]) → bool
Alias to isLazyEntityType with a TypeInfo parameter.
override
merge(EntityResolutionRules? other) → EntityResolutionRules
Merges this instances with other.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
override
toString() → String
A string representation of this object.
override
validate() → void
Validates this instances rules. See isValid.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited