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

update queries: allow to copy fields #159

Open
dbu opened this issue May 5, 2015 · 2 comments
Open

update queries: allow to copy fields #159

dbu opened this issue May 5, 2015 · 2 comments
Labels
Milestone

Comments

@dbu
Copy link
Member

dbu commented May 5, 2015

It would be awesome if this query would work:

UPDATE [nt:unstructured] AS a INNER JOIN [nt:unstructured] AS t ON ISCHILDNODE(t, a) SET t.linkCaption = a.linkCaption WHERE a.[phpcr:class] = 'Liipch\MagazineBundle\Document\Article' ;

but the update processor would need to evaluate the value side, we get

[PHPCR\ValueFormatException] Invalid value for property "originalLinkCaption": Object values must implement PHPCR\NodeInterface, PHPCR\PropertyInterface or be \DateTime, supplied argument is of class: PHPCR\Shell\Query\ColumnOperand
@dantleech
Copy link
Member

Might be easy, depends on the parser. I started writing a new parser implementation but it seems it was one of the few things I pushed to github before I lost the contents of my harddrive :(

@dantleech dantleech added this to the v1.0 milestone May 5, 2015
@dantleech
Copy link
Member

This should be possible with the EXPR function btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants