HasMany class
Represents a one-to-many relationship from the "one" side.
foreignKey: The field on the related entity that holds the ID of this entity.
localKey: The field on this entity that the foreignKey on the related
entity points to. Defaults to 'id'.
Example: A User entity might have a HasMany('userId') to link to all of
its Post entities, where each Post has a userId field.
Properties
- 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
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