unclecheese/DataObjectManager — pull request #62 by willmorgan (2012-12-05 12:07:33+00:00)
Title: FIXED: Column names when updating SortOrder

The SortOrder update query was using arbitrary fields to update, which
caused a bug with Page-Page self referencing many many relationships.
The query has been changed to use the Sapphire ORM-reported column
names, which stops the erroneous query logic like WHERE PageID = 1 AND
PageID = 2 and now uses WHERE PageID = 1 AND ChildID = 2, where ChildID
is reported as the correct field by Sapphire.