BUGFIX: fixes relation id when save & publishing a new record

if you create a new record and click save & publish the relationship id isn't recorded in the model.
Merge pull request #1 from christopherdarling/patch-1

BUGFIX: fixes relation id when save & publishing a new record