ManyToMany<T extends DatumEntityInterface> constructor
ManyToMany<T extends DatumEntityInterface> (
- RelationalDatumEntity parent,
- DatumEntityInterface pivotEntity,
- String thisForeignKey,
- String otherForeignKey, {
- String thisLocalKey = 'id',
- String otherLocalKey = 'id',
- List<
T> ? value, - CascadeDeleteBehavior cascadeDeleteBehavior = CascadeDeleteBehavior.none,
Implementation
ManyToMany(
super.parent,
this.pivotEntity,
this.thisForeignKey,
this.otherForeignKey, {
this.thisLocalKey = 'id',
this.otherLocalKey = 'id',
List<T>? value,
super.cascadeDeleteBehavior = CascadeDeleteBehavior.none,
}) {
_value = value;
if (value != null) {
_isLoaded = true;
}
}