- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
ManyToManyOptions
ManyToManyOptions: RelationshipOptions & object
| object
mappedBy#
Optional
mappedBy: string
The name of the relationship as defined in the other
data model. This is only required by the belongsTo
and manyToMany
relationship method.
pivotTable#
Optional
pivotTable: string
The name of the pivot table created in the database for this relationship.
joinColumn#
Optional
joinColumn: string
The column name in the pivot table that for the current entity
inverseJoinColumn#
Optional
inverseJoinColumn: string
The column name in the pivot table for the opposite entity
pivotEntity#
Optional
pivotEntity: () => DmlEntity<any, any>
A function that returns the data model representing the pivot table created in the database for this relationship.
Was this page helpful?