{"action":"created","issue":{"url":"https://api.github.com/repos/Vinelab/NeoEloquent/issues/135","labels_url":"https://api.github.com/repos/Vinelab/NeoEloquent/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/Vinelab/NeoEloquent/issues/135/comments","events_url":"https://api.github.com/repos/Vinelab/NeoEloquent/issues/135/events","html_url":"https://github.com/Vinelab/NeoEloquent/issues/135","id":121348444,"number":135,"title":"Builder find method.","user":{"login":"heydavid713","id":11636521,"avatar_url":"https://avatars.githubusercontent.com/u/11636521?v=3","gravatar_id":"","url":"https://api.github.com/users/heydavid713","html_url":"https://github.com/heydavid713","followers_url":"https://api.github.com/users/heydavid713/followers","following_url":"https://api.github.com/users/heydavid713/following{/other_user}","gists_url":"https://api.github.com/users/heydavid713/gists{/gist_id}","starred_url":"https://api.github.com/users/heydavid713/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heydavid713/subscriptions","organizations_url":"https://api.github.com/users/heydavid713/orgs","repos_url":"https://api.github.com/users/heydavid713/repos","events_url":"https://api.github.com/users/heydavid713/events{/privacy}","received_events_url":"https://api.github.com/users/heydavid713/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-09T21:57:25Z","updated_at":"2015-12-10T14:00:17Z","closed_at":null,"body":"Hey guys,\r\n\r\nIn Vinelab\\NeoEloquent\\Builder.php the find method has the following lines.\r\n```\r\n// If the dev did not specify the $id as an int it would break\r\n// so we cast it anyways.\r\nif (is_array($id))\r\n{\r\n     return $this->findMany(array_map(function($id){ return (int) $id; }, $id), $properties);\r\n}\r\n```\r\n\r\nIt (obviously) is not working when the primary key is set to a string. I can removed and tested it working, but is there a reason (maybe in Neo4J) why this was done?\r\n\r\nI'm using 1.2.11"},"comment":{"url":"https://api.github.com/repos/Vinelab/NeoEloquent/issues/comments/163627276","html_url":"https://github.com/Vinelab/NeoEloquent/issues/135#issuecomment-163627276","issue_url":"https://api.github.com/repos/Vinelab/NeoEloquent/issues/135","id":163627276,"user":{"login":"heydavid713","id":11636521,"avatar_url":"https://avatars.githubusercontent.com/u/11636521?v=3","gravatar_id":"","url":"https://api.github.com/users/heydavid713","html_url":"https://github.com/heydavid713","followers_url":"https://api.github.com/users/heydavid713/followers","following_url":"https://api.github.com/users/heydavid713/following{/other_user}","gists_url":"https://api.github.com/users/heydavid713/gists{/gist_id}","starred_url":"https://api.github.com/users/heydavid713/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heydavid713/subscriptions","organizations_url":"https://api.github.com/users/heydavid713/orgs","repos_url":"https://api.github.com/users/heydavid713/repos","events_url":"https://api.github.com/users/heydavid713/events{/privacy}","received_events_url":"https://api.github.com/users/heydavid713/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T14:00:17Z","updated_at":"2015-12-10T14:00:17Z","body":"Ok I ran some more tests and found out why it was being casted to int. Changed it to check if it is a number first."}}