Add DB-level onDelete CASCADE example
This adds `onDelete: CASCADE` to the `address` 1-1 relationship just to show how you would map a db-level cascade.
This commit is contained in:
parent
e8f51acdb2
commit
57ac3bd4be
@ -100,6 +100,7 @@ of several common elements:
|
||||
joinColumn:
|
||||
name: address_id
|
||||
referencedColumnName: id
|
||||
onDelete: CASCADE
|
||||
oneToMany:
|
||||
phonenumbers:
|
||||
targetEntity: Phonenumber
|
||||
|
Loading…
x
Reference in New Issue
Block a user