thanks for the example, very helpful! can you add $dm->persist() calls for each menu node and a flush() at the end just to avoid people unfamiliar with phpcr-odm being confused?