jadell / neo4jphp

PHP wrapper of the Neo4j REST interface
Other
532 stars 137 forks source link

problem with setLabels with version 3.3 #187

Open vstruchkov opened 7 years ago

vstruchkov commented 7 years ago

To prevent error "Internal error - should have used fall back to execute query, but something went horribly wrong" after setLabels command replace string (51) at Everyman/Neo4j/Command/SetLabels.php $query = "START n=node({nodeId}) {$setCommand} n :{$labelSet} RETURN labels(n) AS labels";

with

$query="MATCH (n) WHERE id(n)={nodeId} {$setCommand} n :{$labelSet} RETURN labels(n) AS labels";