unclecheese/DataObjectManager — pull request #63 by willmorgan (2012-12-05 12:11:22+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.

Line endings have been trimmed. The changed fields are between lines 778 and 780.