1
0
mirror of synced 2025-01-31 20:41:44 +03:00

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:
Shaun 2014-02-11 17:23:19 -05:00
parent e8f51acdb2
commit 57ac3bd4be

View File

@ -100,6 +100,7 @@ of several common elements:
joinColumn:
name: address_id
referencedColumnName: id
onDelete: CASCADE
oneToMany:
phonenumbers:
targetEntity: Phonenumber