MssqlRelationKind enum
The relation shapes, matching the vocabulary Eloquent uses.
The pairs that look redundant are not. hasOne and hasMany are the same
foreign key in the same direction; what differs is whether the other side
can hold more than one row per parent, which a unique constraint on its
foreign key columns settles. Every morph* and *Through shape is
declared rather than derived, because no foreign key expresses them.
Values
- belongsTo → const MssqlRelationKind
-
A foreign key on this table points at another's primary key. Eloquent:
belongsTo. - hasOne → const MssqlRelationKind
-
A foreign key on another table points back at this one, and that side is unique, so there is at most one. Eloquent:
hasOne. - hasMany → const MssqlRelationKind
-
A foreign key on another table points back at this one. Eloquent:
hasMany. - belongsToMany → const MssqlRelationKind
-
Through a pivot table carrying both sides' keys. Eloquent:
belongsToMany. - hasOneThrough → const MssqlRelationKind
-
A → B → C, where C is reached through B and there is one. Eloquent:
hasOneThrough. - hasManyThrough → const MssqlRelationKind
-
A → B → C, many. Eloquent:
hasManyThrough. - morphTo → const MssqlRelationKind
-
This table carries a type column and an id column naming one of several possible parents. Eloquent:
morphTo. - morphOne → const MssqlRelationKind
-
The inverse of morphTo, with one child. Eloquent:
morphOne. - morphMany → const MssqlRelationKind
-
The inverse of morphTo, with many. Eloquent:
morphMany. - morphToMany → const MssqlRelationKind
-
Through a pivot whose rows also carry a type column. Eloquent:
morphToMany.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
MssqlRelationKind> - A constant List of the values in this enum, in order of their declaration.