ManyToOne constructor

const ManyToOne({
  1. required Type targetEntity,
  2. String? foreignKey,
  3. String referencedColumn = 'id',
  4. bool cascadeDelete = false,
  5. bool lazyLoad = true,
  6. bool eagerLoad = false,
  7. bool nullable = true,
  8. RelationAction onDelete = RelationAction.noAction,
  9. 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,
});