phpcr/phpcr-shell — pull request #90 by dantleech (2014-08-28 21:35:48+00:00)
Title: [query] Full support for manipulating multivalue properties

Adds support for updating multivalue properties with the UPDATE query:

````cucumber
Scenario: Replace a multivalue index by value
Given I execute the "UPDATE [nt:unstructured] AS a SET a.tags = 'Rockets' WHERE a.tags = 'Trains'" command
Scenario: Set a multivalue value
Given I execute the "UPDATE [nt:unstructured] AS a SET a.tags = ['Rockets', 'Dragons'] WHERE a.tags = 'Trains'" command
Scenario: Update single multivalue
Given I execute the "UPDATE [nt:unstructured] AS a SET a.tags = 'Rockets' WHERE a.tags = 'Planes'" command
Scenario: Remove single multivalue
Given I execute the "UPDATE [nt:unstructured] AS a SET a.tags = NULL WHERE a.tags = 'Planes'" command
Scenario: Remove single multivalue by index
Given I execute the "UPDATE [nt:unstructured] AS a SET a.tags[0] = NULL WHERE a.tags = 'Planes'" command
Scenario: Add a multivalue property
Given I execute the "UPDATE [nt:unstructured] AS a SET a.tags[] = 'Kite' WHERE a.tags = 'Planes'" command
Scenario: Replace a multivalue property by index
Given I execute the "UPDATE [nt:unstructured] AS a SET a.tags[1] = 'Kite', a.tags[2] = 'foobar' WHERE a.tags = 'Planes'" command
````