ManyToOne constructor
const
ManyToOne({
- required Type targetEntity,
- String? foreignKey,
- String referencedColumn = 'id',
- bool cascadeDelete = false,
- bool lazyLoad = true,
- bool eagerLoad = false,
- bool nullable = true,
- RelationAction onDelete = RelationAction.noAction,
- RelationAction onUpdate = RelationAction.noAction,
Implementation
const ManyToOne({
required this.targetEntity,
this.foreignKey,
this.referencedColumn = 'id',
this.cascadeDelete = false,
this.lazyLoad = true,
this.eagerLoad = false,
this.nullable = true,
this.onDelete = RelationAction.noAction,
this.onUpdate = RelationAction.noAction,
});