{"action":"closed","issue":{"url":"https://api.github.com/repos/orientechnologies/PhpOrient/issues/4","labels_url":"https://api.github.com/repos/orientechnologies/PhpOrient/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/PhpOrient/issues/4/comments","events_url":"https://api.github.com/repos/orientechnologies/PhpOrient/issues/4/events","html_url":"https://github.com/orientechnologies/PhpOrient/issues/4","id":58852035,"number":4,"title":"int is returned as string ","user":{"login":"zifnab87","id":526062,"avatar_url":"https://avatars.githubusercontent.com/u/526062?v=3","gravatar_id":"","url":"https://api.github.com/users/zifnab87","html_url":"https://github.com/zifnab87","followers_url":"https://api.github.com/users/zifnab87/followers","following_url":"https://api.github.com/users/zifnab87/following{/other_user}","gists_url":"https://api.github.com/users/zifnab87/gists{/gist_id}","starred_url":"https://api.github.com/users/zifnab87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zifnab87/subscriptions","organizations_url":"https://api.github.com/users/zifnab87/orgs","repos_url":"https://api.github.com/users/zifnab87/repos","events_url":"https://api.github.com/users/zifnab87/events{/privacy}","received_events_url":"https://api.github.com/users/zifnab87/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/PhpOrient/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-25T05:19:35Z","updated_at":"2015-02-25T15:05:01Z","closed_at":"2015-02-25T15:05:01Z","body":"dev-master:today\r\nHi, I am inserting an int and it is returned as a string. Here is my schema setup (it is integer obviously and saved): http://i.imgur.com/vc93Yq6.png\r\n```php\r\n$data = [\"IsOfTypeCount\" => 10];\r\nvar_dump($data);\r\n$transaction = $db->getTransactionStatement();\r\n$transaction = $transaction->begin();\r\n$record =  (new Record())\r\n            ->setOData( $data )\r\n            ->setOClass( \"Entity\" )\r\n            ->setRid( new ID() );\r\n\r\n$createCommand = $db->recordCreate($record);\r\n$transaction->attach( $createCommand );\r\n$transaction->commit();\r\n$record = $db->query(\"select from Entity where @rid ='\".$record->getRid().\"'\")[0];\r\n$dataNew = $record->getOData();\r\n var_dump($dataNew);\r\n```\r\n```php\r\n//results:\r\narray(1) {\r\n  [\"IsOfTypeCount\"]=>\r\n  int(10)\r\n}\r\narray(1) {\r\n  [\"IsOfTypeCount\"]=>\r\n  string(2) \"10\"\r\n}\r\n```\r\n\r\nThanks \r\nMichail"}}