This repository was archived by the owner on Apr 17, 2018. It is now read-only.
Commit b455f42
committed
This fixes lighthouse#1475, results incorrectly marked as immutable
Model#load checks the validity of the fields in the PK when determining if the
object returned should be live or immutable. Unfortunately, it checks the raw
values rather than the loaded values, resulting in data incorrectly marked as
immutable if the PK countains fields (Enum, Flag, etc.) that are stored in a
different format than the format in which they are represented within the
application.
This fixes the bug by loading the values that make up the PK before checking their
validity.
For a description of the symptoms, see the thread linked to from:
http://datamapper.lighthouseapp.com/projects/20609/tickets/1475-strange-immutable-error1 parent 524637c commit b455f42
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
| 591 | + | |
| 592 | + | |
592 | 593 | | |
593 | 594 | | |
594 | 595 | | |
| |||
0 commit comments