Skip to content

update queries: allow to copy fields #159

Open
@dbu

Description

@dbu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions