silverstripe/sapphire — pull request #922 by simonwelsh (2012-11-03 03:35:59+00:00)
Title: NEW: Allows setting of has_many and many_many relations before writing

Adds a new wrapper list, UnsavedRelationList, that maintains the relations until
writing, where it is converted into the correct RelationList.

This is going to form the base of allowing UploadField to be used on a record that hasn't been saved. It also fixes the many_many handling code in DataObject::populateDefaults().