Open laurentszyster opened 9 years ago
Adding a references
option to model is much better than adding a cascade
option to its delete
method.
We can use it in delete
to eventually cascade when using MySQL.
And we may use it in relate
to better define how model(s) are related.
MySQL default engine does not support referential integrity.
However, MySQL extends the DELETE statement to support deleting in JOINed tables.
JSONModel cannot reconcile that difference between MySQL and other SQL databases.
So it must support both styles.