Fix orphaned records when running update
When DataObject::update() is run with relation fields and the relationship
is new the relationship ID was not set on the DataObject. This patch fixes
this. Fixes issue 6195 in open.silverstripe.org.
Merge pull request #1861 from raket/dataobject-update-orphan

Fix: Orphaned records when running DataObject::update