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