-
Notifications
You must be signed in to change notification settings - Fork 351
Overwrite 'doctrine:phpcr:workspace:import' set default to throw #3752
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
Overwrite 'doctrine:phpcr:workspace:import' set default to throw #3752
Conversation
141692a
to
7dfe17d
Compare
7dfe17d
to
d44b7c8
Compare
@danrot @chirimoya the phpcr-utils are only compatible with php |
d44b7c8
to
3868a95
Compare
|
3868a95
to
9c939fb
Compare
@danrot this is ready to review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I checkout this change and import already existing data I get the following error:
[PHPCR\ItemExistsException]
There already is a node with uuid 51114c8d-1927-41db-82d8-16ca70e97447 in this workspace.
That's the desired behavior, right? So somebody would have to delete this data first before import it afterwards?
@@ -64,7 +64,8 @@ | |||
"symfony/symfony": "2.8.10", | |||
"symfony/phpunit-bridge": "2.8.10", | |||
"symfony/monolog-bundle": "2.8.10", | |||
"jackalope/jackalope": "1.2.8 || 1.3.0 || 1.3.1" | |||
"jackalope/jackalope": "1.2.8 || 1.3.0 || 1.3.1", | |||
"phpcr/phpcr-utils": "1.2.1 - 1.2.10 || 1.3.1 || 1.3.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have such a strange version constraint here? Do you think 1.3.3 will already break again? Same for jackalope/jackalope
, although that was already like that before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, sry, didn't see that this is the conflict section 🙈
What's in this PR?
This PR overwrites the command
doctrine:phpcr:workspace:import
and set the default ofuuid-behavior
tothrow
.Why?
This disables the regeneration of
uuid
while import from xml.