Skip to content

Cannot change nodename and add new reference to collection. Fails with 409, PathNotFoundException. #703

@koemeet

Description

@koemeet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions