unframed / JSONModel.php

"People love ORMs"
GNU Lesser General Public License v3.0
28 stars 1 forks source link

Follow up on SQLAbstract issue 4 #4

Open laurentszyster opened 9 years ago

laurentszyster commented 9 years ago

Following up on https://github.com/unframed/SQLAbstract.php/issues/4, JSONModel must generate SQL constraints.

First the PRIMARY KEY constraint.

Then FOREIGN KEY constraints.

laurentszyster commented 9 years ago

Note that MySQL default storage ignores FOREIGN KEY constraints altogether.

To let MySQL applications implement referential integrity themselves, the delete method should support a cascade option that maps the related table's references.