jackalope/jackalope-doctrine-dbal

Copy binary data for children nodes

Closed this issue · 6 comments

Hi,
In \Jackalope\Transport\DoctrineDBAL\Client:copyNode() line 698 we execute query to copy binary data, but according to update params we are trying to copy the same data every iteration

WHERE b.node_id = ? [$srcNodeId]

since $srcNodeId is id of the root source node, not current iteration children node.

Is this by mistake or is this intended?

yeah this looks like a bug to me as well

dbu commented

Sure, the fix seems to be easy enough.
So I need to make 2 pull requests - 1 for this repo and one for tests repo, right?

dbu commented
dbu commented

very cool, thanks a lot for working on this!