{"action":"created","issue":{"url":"https://api.github.com/repos/PommeVerte/gremlin-php/issues/10","labels_url":"https://api.github.com/repos/PommeVerte/gremlin-php/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/PommeVerte/gremlin-php/issues/10/comments","events_url":"https://api.github.com/repos/PommeVerte/gremlin-php/issues/10/events","html_url":"https://github.com/PommeVerte/gremlin-php/issues/10","id":110071762,"number":10,"title":"SideEffects","user":{"login":"rlacerda83","id":9198556,"avatar_url":"https://avatars.githubusercontent.com/u/9198556?v=3","gravatar_id":"","url":"https://api.github.com/users/rlacerda83","html_url":"https://github.com/rlacerda83","followers_url":"https://api.github.com/users/rlacerda83/followers","following_url":"https://api.github.com/users/rlacerda83/following{/other_user}","gists_url":"https://api.github.com/users/rlacerda83/gists{/gist_id}","starred_url":"https://api.github.com/users/rlacerda83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlacerda83/subscriptions","organizations_url":"https://api.github.com/users/rlacerda83/orgs","repos_url":"https://api.github.com/users/rlacerda83/repos","events_url":"https://api.github.com/users/rlacerda83/events{/privacy}","received_events_url":"https://api.github.com/users/rlacerda83/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PommeVerte/gremlin-php/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-06T18:32:54Z","updated_at":"2015-10-07T12:47:08Z","closed_at":"2015-10-06T20:11:58Z","body":"I think that's not a problem, is a doubt.\r\nI'm having trouble using sideEffect to update properties of a vertex.\r\n\r\nI am running the following code:\r\n```php\r\n$result = $connection->send(\"g.V(12360).sideEffect{it.name='Rodrigo'; it.idUser='10'}\");\r\n```\r\n\r\nThe error message:\r\n```\r\nA general server error occurred that prevented the request from being processed. : No such property: name for class: org.apache.tinkerpop.gremlin.process.traversal.traverser.O_Traverser >\r\n```\r\nThis is the vertex contents:\r\n```json\r\n{\r\n  \"data\": [\r\n    {\r\n      \"id\": 12360,\r\n      \"label\": \"user\",\r\n      \"type\": \"vertex\",\r\n      \"properties\": {\r\n        \"idUser\": [\r\n          {\r\n            \"id\": \"3yh-9jc-2dh\",\r\n            \"value\": \"2\"\r\n          }\r\n        ],\r\n        \"name\": [\r\n          {\r\n            \"id\": \"3k9-9jc-sl\",\r\n            \"value\": \"Lacerda\"\r\n          }\r\n        ]\r\n      }\r\n    }\r\n  ]\r\n}```"},"comment":{"url":"https://api.github.com/repos/PommeVerte/gremlin-php/issues/comments/146186054","html_url":"https://github.com/PommeVerte/gremlin-php/issues/10#issuecomment-146186054","issue_url":"https://api.github.com/repos/PommeVerte/gremlin-php/issues/10","id":146186054,"user":{"login":"rlacerda83","id":9198556,"avatar_url":"https://avatars.githubusercontent.com/u/9198556?v=3","gravatar_id":"","url":"https://api.github.com/users/rlacerda83","html_url":"https://github.com/rlacerda83","followers_url":"https://api.github.com/users/rlacerda83/followers","following_url":"https://api.github.com/users/rlacerda83/following{/other_user}","gists_url":"https://api.github.com/users/rlacerda83/gists{/gist_id}","starred_url":"https://api.github.com/users/rlacerda83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlacerda83/subscriptions","organizations_url":"https://api.github.com/users/rlacerda83/orgs","repos_url":"https://api.github.com/users/rlacerda83/repos","events_url":"https://api.github.com/users/rlacerda83/events{/privacy}","received_events_url":"https://api.github.com/users/rlacerda83/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T12:47:08Z","updated_at":"2015-10-07T12:47:08Z","body":"You're right, I'm confusing the returned types, need to read more carefully the documentation.\r\n\r\nThank you very much for your help.\r\n\r\nI am creating a microservice for product recommendations in PHP, and I'm using your library.\r\n\r\nI will start with this implementation, cosine similarity!\r\nhttps://gist.github.com/dkuppitz/79e0b009f0c9ae87db5a\r\n\r\nMaybe I need your help with something else ... = )"}}