mobility
mobility copied to clipboard
#569: Don't create empty translations on read
Fixes #569 .
This ended up being simpler than I expected. I simply added a for_read parameter that's only set on read, which would return an isolated translation object instead of one attached to the translations collection. This leaves the cache intact as well.
Hmm... might not be as simple. In this case if you first do a read, it'll cache the read as the isolated record. Then subsequent writes will go to the isolated record instead of the built one, and they won't save. Let me try to fix.
Should be fixed now!