Skip to content

Introduce expression language in UPDATE queries #141

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

Merged
merged 1 commit into from
Mar 1, 2015

Conversation

dantleech
Copy link
Member

This PR introduces the possiblitiy of setting property values to the result of an expression evaluation using the $row object.

For example:

UPDATE [nt:unstructured] AS a SET a.title = expr('row.getNode().getName()') WHERE localname() = 'article1'
UPDATE [nt:unstructured] AS a SET a.weight = expr('row.getNode().getPropertyValue("weight") * 2') WHERE a.name = 'Product One'

"symfony/dependency-injection": "~2.3",
"symfony/finder": "~2.4",
"symfony/serializer": "~2.4",
"symfony/yaml": "~2.4",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you dropping the Symfony LTS support for all these components ?

Note that given symfony/expression-language is fully standalone, it is possible to install the 2.4 component in a symfony 2.3 project to use it (you will not have the integrations in places where Symfony itself uses the expression-language of course)

@dantleech dantleech force-pushed the expression_language branch from 1f070df to eca0508 Compare March 1, 2015 12:41
dantleech added a commit that referenced this pull request Mar 1, 2015
Introduce expression language in UPDATE queries
@dantleech dantleech merged commit cf56769 into master Mar 1, 2015
@dantleech dantleech deleted the expression_language branch March 1, 2015 12:52
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

Successfully merging this pull request may close these issues.

3 participants