docs: improved data model docs (#11884)
* docs: improved data model docs * fix build errors
This commit is contained in:
@@ -67,7 +67,7 @@ The `belongsTo` method also requires passing as a second parameter an object wit
|
||||
|
||||
### Optional Relationship
|
||||
|
||||
To make the relationship optional on the `hasOne` or `belongsTo` side, use the `nullable` method on either property as explained in [this chapter](../configure-properties/page.mdx#nullable-property).
|
||||
To make the relationship optional on the `hasOne` or `belongsTo` side, use the `nullable` method on either property as explained in [this chapter](../properties/page.mdx#make-property-optional).
|
||||
|
||||
### One-sided One-to-One Relationship
|
||||
|
||||
@@ -142,7 +142,7 @@ In this example, a store has many products, but a product belongs to one store.
|
||||
|
||||
### Optional Relationship
|
||||
|
||||
To make the relationship optional on the `belongsTo` side, use the `nullable` method on the property as explained in [this chapter](../configure-properties/page.mdx#nullable-property).
|
||||
To make the relationship optional on the `belongsTo` side, use the `nullable` method on the property as explained in [this chapter](../properties/page.mdx#make-property-optional).
|
||||
|
||||
### One-to-Many Relationship in the Database
|
||||
|
||||
|
||||
Reference in New Issue
Block a user