我收到以下错误:
Can't create `referee` with properties here. It already exists in this context
当我执行以下操作时:
foreach($feedarray as $feed)
{
$game= $client->makeNode();
$game->setProperty('label', "Game: ".$feed['game_number'])
->setProperty('type', "game")
->setProperty('referee_name',$disposition['referee_name'])
->save();
$queryString = "START referee=node:node_auto_index(name={name}), game=node({nodeId}) ".
"CREATE UNIQUE (referee{label:{name}, type:'referee'})-[:REFEREED{ label:'REFEREED' }]->(game)".
"RETURN referee";
$query = new Neo4j\Cypher\Query($client, $queryString, array('nodeId' => $game->getId(),'name' => $feed['referee_name']));
$result = $query->getResultSet();
}
}//for loop