jackalope/jackalope-doctrine-dbal — pull request #32 by petesiss (2012-05-29 22:55:54+00:00)
Title: [WIP] Orderable nodes

A first stab at reorderNodes for feedback / discussion.

This solution uses a typical sort_order field, so any nodes reordered to adjacent positions only require 2 rows to be updated, but moving a last sibling to the first position for example requires all siblings to be updated.

Natural order is relied upon, as now, until siblings are explicitly reordered or new ones created, and then the sort_order field is populated to cement their positions.

Currently pays no attention to the phpcr_type_nodes.orderable_child_nodes field.