jadell / neo4jphp

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

Newly created propertycontainers lazyload after creation save #58

Closed jadell closed 12 years ago

jadell commented 12 years ago

Recreate with

$client = new Client($transport);
$node = $client->makeNode(array('foo' => 'bar'))->save();
print_r($node);
print_r($node->getProperty('foo'));
print_r($node->getProperty('foo'));

while monitoring Transport::makeRequest()

Should only see the save. The bug is that the first getProperty call also makes a request.