neoxygen / neo4j-neoclient

Simple PHP HttpClient for the Neo4j ReST API with Multi DB Support
MIT License
121 stars 138 forks source link

$node->getId() returning string not int #33

Closed JackieXu closed 9 years ago

JackieXu commented 9 years ago

I tried using the response of $node->getId() as a variable to find another node:

$client->sendCypherQuery('
    MATCH (a:TEST)
    WHERE id(a) = {id}
    RETURN a
', array(
    'id' => $node->getId()
));

But I got the following error: Expected a propertycontainer or number here, but got: 1

ikwattro commented 9 years ago

Sorry I was at a meetup yesterday. Thanks for reporting this issue, I'll fix it in the upcoming hours.

ikwattro commented 9 years ago

Fixed in 2.1.4, thanks again for reporting the issue.