Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path not found in current session after failed remove #253

Closed
dantleech opened this issue Nov 5, 2014 · 1 comment
Closed

Path not found in current session after failed remove #253

dantleech opened this issue Nov 5, 2014 · 1 comment

Comments

@dantleech
Copy link
Contributor

With the Jackrabbit implementation (not tried in DBAL) when you try and save a session after removing a node with references the save fails and a PHPCR\ReferentialIntegrityException is thrown.

However, when catching this error and calling:

$node->getReferrers();

I get the following error:

Path not found (node deleted in current session)
@dbu
Copy link
Member

dbu commented Nov 5, 2014

i think there are many places in jackalope (and also the odm) where the internal state gets messed up after an exception is thrown because of some violation. it had a lower priority to us because usually the request / script will have to bail out after an error anyways. maybe the best after an error would be to aquire a new session...

if we can improve the recoverability after an error without overcomplicating everything, i am +1 of course, it would be nice if you could continue after an exception.

@dbu dbu closed this as completed Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants