You cannot update the nodename of a document and add a new reference in the same transaction. To illustrate the issue better, I have the following code example:
$page = $dm->find(null, $object->getId());
$page->setName('helloo');
$translation = new PageTranslation();
$translation->setLocale('nl_NL');
$translation->setTitle('Over ons');
$translation->setBody('Content voor over ons');
$page->addTranslation($translation);
$dm->persist($page);
$dm->flush();
When running the above code, it will throw the following exception:
PHPCR\PathNotFoundException: HTTP 409: /workspaces/525/channels/658/pages/helloo/nl_NL
I am not sure if this is a problem in the phpcr-odm project or an issue with the jackalope-jackrabbit transport layer.