HasOne<T extends DatumEntityInterface> class

Inheritance

Constructors

HasOne(RelationalDatumEntity parent, String foreignKey, {String localKey = 'id', T? value, CascadeDeleteBehavior cascadeDeleteBehavior = CascadeDeleteBehavior.none})

Properties

cascadeDeleteBehavior → CascadeDeleteBehavior
finalinherited
foreignKey → String
final
hashCode → int
The hash code for this object.
no setterinherited
localKey → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shouldCascadeDelete → bool
Returns true if this relation should cascade delete operations.
no setterinherited
shouldRestrictDelete → bool
Returns true if this relation should restrict delete operations.
no setterinherited
shouldSetNullOnDelete → bool
Returns true if this relation should set foreign keys to null.
no setterinherited
targetType → Type
The related entity type for this relation.
no setterinherited
value → T?
no setteroverride

Methods

describe(String name) → RelationDescriptor
Builds an instance-free RelationDescriptor for this relation under name.
inherited
fetch() → Future<T?>
getRelatedManager() → DatumManager<T>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(T? value) → void
setRaw(dynamic value) → void
Sets the value of the relation from a raw dynamic value (e.g. from generic query results).
override
toString() → String
A string representation of this object.
inherited

Operators

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