jadell / neo4jphp

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

Why $client->makeNode() duplicates entries? #145

Closed r3verser closed 10 years ago

r3verser commented 10 years ago

Hi, this code makes 6 items in database, every char is duplicated, what i do wrong?

$client = new Everyman\Neo4j\Client('localhost', 7474);

foreach (array('a', 'b', 'c') as $c) {
    $char = $client->makeNode();
    $char->setProperty('value', $c)
        ->save();
}
r3verser commented 10 years ago

Tried to execute this script from console (previously i ran it from my browser), and no duplicates were created! So, i think the problem hides in my Google Chrome. Sorry for false issue!:)