-
Notifications
You must be signed in to change notification settings - Fork 30
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
[command] node:touch multivalue? #63
Comments
In regard to modifying an existing node, yeah, touch will happily modify a node at the given path. I wonder for prop-add if we can do some syntax like
Actually - associative arrays are not supported in PHPCR-ODM .. right? What would the syntax be for:
|
i like this [] syntax, looks reasonble. and i prefer it over prop-add. prop-add is confusing as you might think you need to know if the property already exists and have no indication it has to do with multivalue. associative arrays are supported by the ODM layer, but not by PHPCR natively, so we can only have numeric keys here. even in the doctrine bundle, the commands to modify a PHPCR node should not support associative arrays. on phpcr level its just 2 separate arrays, one for keys and one for values. |
re our irc discussion, i think we should not add more property things into touch, but rather have phpcr:property:* commands for that. touching a node while creating a property at the same time has some value, but for full flexibility i would go with a separate command. |
@dantleech is this still relevant? i guess the phpcr-shell can handle this a lot better and we should remove the node:touch standalone commands in favor of the shell. |
i just noticed that the touch command does not support multivalue properties. we might try to clean that up. have a
--prop-add
argument?btw, is it possible to just change a property of an existing node or do we have to create a new node for that?
The text was updated successfully, but these errors were encountered: