docs: fix deleteCascade typo (#9744)
This commit is contained in:
@@ -122,7 +122,7 @@ In this example, a record of `product` can be linked to more than one record of
|
||||
|
||||
## Set Delete Cascades on Link
|
||||
|
||||
To enable delete cascade on a link so that when a record is deleted, its linked records are also deleted, pass the `deleteCascades` property in the object passed to `defineLink`.
|
||||
To enable delete cascade on a link so that when a record is deleted, its linked records are also deleted, pass the `deleteCascade` property in the object passed to `defineLink`.
|
||||
|
||||
For example:
|
||||
|
||||
@@ -135,9 +135,9 @@ export default defineLink(
|
||||
ProductModule.linkable.product,
|
||||
{
|
||||
linkable: HelloModule.linkable.myCustom,
|
||||
deleteCascades: true,
|
||||
deleteCascade: true,
|
||||
}
|
||||
)
|
||||
```
|
||||
|
||||
In this example, when a product is deleted, its linked `myCustom` record is also deleted.
|
||||
In this example, when a product is deleted, its linked `myCustom` record is also deleted.
|
||||
|
||||
Reference in New Issue
Block a user