HasOne<T extends DatumEntityInterface> class
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
- value → T?
-
no setteroverride
Methods
-
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 -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited