nedap / relational-model

GNU General Public License v2.0
0 stars 0 forks source link

Remove references from disconnected models #7

Open rubenswieringa opened 10 years ago

rubenswieringa commented 10 years ago

Should occur when model relations are dissolved through changing of primary-key values.

rubenswieringa commented 10 years ago

This issue addresses a situation where, for example:

hasOne 'crush', 'Person', key: 'crushID'
belongsTo 'admirer', 'Person', key: 'crushID', keyInSelf: false

Let's say romeo.crush == juliet (and consequently juliet.admirer == romeo) but then romeo.crush changes to caraDelevingne.

Currently juliet.admirer would still == romeo, but this issue should take care of that.