add manyforeignfield
fix saving
Merge pull request #5 from icegreg/feature