doctrine/phpcr-odm — pull request #162 by sjopet (2012-08-14 09:15:12+00:00)
Title: Update lib/Doctrine/ODM/PHPCR/UnitOfWork.php

changed execution order in the persistNew function so any lifecycle events get called before the id generator logic is executed. This enables you to set the id/path of a node using a prePersist event.
Test run successfully.