inventid / tails

Models on the fly!
MIT License
1 stars 0 forks source link

Recreate associations when the id of a model changes #59

Closed joostverdoorn closed 9 years ago

joostverdoorn commented 9 years ago

@rogierslag please review

rogierslag commented 9 years ago

:+1:

steffansluis commented 9 years ago

@joostverdoorn I'm guessing this has to do with syncing back the new id when creating a model? Otherwise, why would the id change?

rogierslag commented 9 years ago

When persisting an entity, the id changes (a new one didnt have an id before)

joostverdoorn commented 9 years ago

Yes indeed. Saving a new model is (should be) the only time this happens