ManyToMany class

Represents a many-to-many relationship.

pivotEntity: A const instance of the entity that acts as the join table. thisForeignKey: The field in the pivot entity that references this entity's ID. thisLocalKey: The field on this entity that thisForeignKey points to. Defaults to 'id'. otherForeignKey: The field in the pivot entity that references the related entity's ID. otherLocalKey: The field on the related entity that otherForeignKey points to. Defaults to 'id'.

Example: A Post entity could have a ManyToMany(PostTag.constInstance, 'postId', 'tagId') to link to Tag entities.

Inheritance

Constructors

ManyToMany(DatumEntityBase pivotEntity, String thisForeignKey, String otherForeignKey, {String thisLocalKey = 'id', String otherLocalKey = 'id'})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
otherForeignKey String
final
otherLocalKey String
final
pivotEntity DatumEntityBase
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thisForeignKey String
final
thisLocalKey String
final

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