{"action":"created","comment":{"url":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls/comments/32107607","id":32107607,"diff_hunk":"@@ -1,31 +1,42 @@\n+#Type::INTEGER\n - functions:\n     - { name: \"cast\", className: \"Oro\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\Cast\", type: \"numeric\" }\n-  dql: \"SELECT CAST(12 as int) FROM Oro\\\\Entities\\\\Foo f WHERE f.id = 1\"\n-  sql: \"SELECT CAST(12 AS unsigned) AS sclr0 FROM test_foo t0_ WHERE t0_.id = 1\"\n+  dql: \"SELECT CAST('123' as integer) FROM Oro\\\\Entities\\\\Foo f WHERE f.id = 1\"\n+  sql: \"SELECT CAST('123' AS signed) AS sclr0 FROM test_foo t0_ WHERE t0_.id = 1\"\n   expectedResult:\n-      - 12\n+      - 123\n \n+#Type::STRING\n - functions:\n     - { name: \"cast\", className: \"Oro\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\Cast\", type: \"numeric\" }\n-  dql: \"SELECT CAST('12' as int) FROM Oro\\\\Entities\\\\Foo f WHERE f.id = 1\"\n-  sql: \"SELECT CAST('12' AS unsigned) AS sclr0 FROM test_foo t0_ WHERE t0_.id = 1\"","path":"tests/Oro/Tests/ORM/AST/Query/Functions/fixtures/mysql/cast.yml","position":16,"original_position":16,"commit_id":"d6b63a2c95a536479da6bcc6158b3d7e53eee273","original_commit_id":"d6b63a2c95a536479da6bcc6158b3d7e53eee273","user":{"login":"x86demon","id":196506,"avatar_url":"https://avatars.githubusercontent.com/u/196506?v=3","gravatar_id":"","url":"https://api.github.com/users/x86demon","html_url":"https://github.com/x86demon","followers_url":"https://api.github.com/users/x86demon/followers","following_url":"https://api.github.com/users/x86demon/following{/other_user}","gists_url":"https://api.github.com/users/x86demon/gists{/gist_id}","starred_url":"https://api.github.com/users/x86demon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x86demon/subscriptions","organizations_url":"https://api.github.com/users/x86demon/orgs","repos_url":"https://api.github.com/users/x86demon/repos","events_url":"https://api.github.com/users/x86demon/events{/privacy}","received_events_url":"https://api.github.com/users/x86demon/received_events","type":"User","site_admin":false},"body":"BC break here. NOTE! This library may be used not only in Oro projects. This is BC break, we should avoid it","created_at":"2015-06-10T11:18:32Z","updated_at":"2015-06-10T11:18:32Z","html_url":"https://github.com/orocrm/doctrine-extensions/pull/9#discussion_r32107607","pull_request_url":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls/comments/32107607"},"html":{"href":"https://github.com/orocrm/doctrine-extensions/pull/9#discussion_r32107607"},"pull_request":{"href":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls/9","id":37344250,"html_url":"https://github.com/orocrm/doctrine-extensions/pull/9","diff_url":"https://github.com/orocrm/doctrine-extensions/pull/9.diff","patch_url":"https://github.com/orocrm/doctrine-extensions/pull/9.patch","issue_url":"https://api.github.com/repos/orocrm/doctrine-extensions/issues/9","number":9,"state":"open","locked":false,"title":"BAP-8368: Refactoring CAST function","user":{"login":"hurricane-voronin","id":2892840,"avatar_url":"https://avatars.githubusercontent.com/u/2892840?v=3","gravatar_id":"","url":"https://api.github.com/users/hurricane-voronin","html_url":"https://github.com/hurricane-voronin","followers_url":"https://api.github.com/users/hurricane-voronin/followers","following_url":"https://api.github.com/users/hurricane-voronin/following{/other_user}","gists_url":"https://api.github.com/users/hurricane-voronin/gists{/gist_id}","starred_url":"https://api.github.com/users/hurricane-voronin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hurricane-voronin/subscriptions","organizations_url":"https://api.github.com/users/hurricane-voronin/orgs","repos_url":"https://api.github.com/users/hurricane-voronin/repos","events_url":"https://api.github.com/users/hurricane-voronin/events{/privacy}","received_events_url":"https://api.github.com/users/hurricane-voronin/received_events","type":"User","site_admin":false},"body":" - Removed  support for the \"int\" and \"char\" types.\r\n - Added support for \"string\" and \"text\" types.\r\n - Added possibility for using supported types from Doctrine\\DBAL\\Types\\Type.","created_at":"2015-06-10T10:27:00Z","updated_at":"2015-06-10T11:18:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7d3ebcc34b69a13e6db3c1df82561672fcf20d06","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls/9/commits","review_comments_url":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls/9/comments","review_comment_url":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/orocrm/doctrine-extensions/issues/9/comments","statuses_url":"https://api.github.com/repos/orocrm/doctrine-extensions/statuses/d6b63a2c95a536479da6bcc6158b3d7e53eee273","head":{"label":"orocrm:ticket/BAP-8368_refactoring","ref":"ticket/BAP-8368_refactoring","sha":"d6b63a2c95a536479da6bcc6158b3d7e53eee273","user":{"login":"orocrm","id":4165718,"avatar_url":"https://avatars.githubusercontent.com/u/4165718?v=3","gravatar_id":"","url":"https://api.github.com/users/orocrm","html_url":"https://github.com/orocrm","followers_url":"https://api.github.com/users/orocrm/followers","following_url":"https://api.github.com/users/orocrm/following{/other_user}","gists_url":"https://api.github.com/users/orocrm/gists{/gist_id}","starred_url":"https://api.github.com/users/orocrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orocrm/subscriptions","organizations_url":"https://api.github.com/users/orocrm/orgs","repos_url":"https://api.github.com/users/orocrm/repos","events_url":"https://api.github.com/users/orocrm/events{/privacy}","received_events_url":"https://api.github.com/users/orocrm/received_events","type":"Organization","site_admin":false},"repo":{"id":22163860,"name":"doctrine-extensions","full_name":"orocrm/doctrine-extensions","owner":{"login":"orocrm","id":4165718,"avatar_url":"https://avatars.githubusercontent.com/u/4165718?v=3","gravatar_id":"","url":"https://api.github.com/users/orocrm","html_url":"https://github.com/orocrm","followers_url":"https://api.github.com/users/orocrm/followers","following_url":"https://api.github.com/users/orocrm/following{/other_user}","gists_url":"https://api.github.com/users/orocrm/gists{/gist_id}","starred_url":"https://api.github.com/users/orocrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orocrm/subscriptions","organizations_url":"https://api.github.com/users/orocrm/orgs","repos_url":"https://api.github.com/users/orocrm/repos","events_url":"https://api.github.com/users/orocrm/events{/privacy}","received_events_url":"https://api.github.com/users/orocrm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/orocrm/doctrine-extensions","description":"Cross database doctrine DQL functions. Supported databases are MySQL and PostgreSQL.","fork":false,"url":"https://api.github.com/repos/orocrm/doctrine-extensions","forks_url":"https://api.github.com/repos/orocrm/doctrine-extensions/forks","keys_url":"https://api.github.com/repos/orocrm/doctrine-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/orocrm/doctrine-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/orocrm/doctrine-extensions/teams","hooks_url":"https://api.github.com/repos/orocrm/doctrine-extensions/hooks","issue_events_url":"https://api.github.com/repos/orocrm/doctrine-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/orocrm/doctrine-extensions/events","assignees_url":"https://api.github.com/repos/orocrm/doctrine-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/orocrm/doctrine-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/orocrm/doctrine-extensions/tags","blobs_url":"https://api.github.com/repos/orocrm/doctrine-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/orocrm/doctrine-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/orocrm/doctrine-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/orocrm/doctrine-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/orocrm/doctrine-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/orocrm/doctrine-extensions/languages","stargazers_url":"https://api.github.com/repos/orocrm/doctrine-extensions/stargazers","contributors_url":"https://api.github.com/repos/orocrm/doctrine-extensions/contributors","subscribers_url":"https://api.github.com/repos/orocrm/doctrine-extensions/subscribers","subscription_url":"https://api.github.com/repos/orocrm/doctrine-extensions/subscription","commits_url":"https://api.github.com/repos/orocrm/doctrine-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/orocrm/doctrine-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/orocrm/doctrine-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/orocrm/doctrine-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/orocrm/doctrine-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/orocrm/doctrine-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/orocrm/doctrine-extensions/merges","archive_url":"https://api.github.com/repos/orocrm/doctrine-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/orocrm/doctrine-extensions/downloads","issues_url":"https://api.github.com/repos/orocrm/doctrine-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/orocrm/doctrine-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/orocrm/doctrine-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/orocrm/doctrine-extensions/labels{/name}","releases_url":"https://api.github.com/repos/orocrm/doctrine-extensions/releases{/id}","created_at":"2014-07-23T17:18:02Z","updated_at":"2015-06-05T01:32:36Z","pushed_at":"2015-06-10T10:27:00Z","git_url":"git://github.com/orocrm/doctrine-extensions.git","ssh_url":"git@github.com:orocrm/doctrine-extensions.git","clone_url":"https://github.com/orocrm/doctrine-extensions.git","svn_url":"https://github.com/orocrm/doctrine-extensions","homepage":"http://www.orocrm.com","size":449,"stargazers_count":35,"watchers_count":35,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":35,"default_branch":"master"}},"base":{"label":"orocrm:master","ref":"master","sha":"4999ed64a294ad1027464e9660c36ee11b69852d","user":{"login":"orocrm","id":4165718,"avatar_url":"https://avatars.githubusercontent.com/u/4165718?v=3","gravatar_id":"","url":"https://api.github.com/users/orocrm","html_url":"https://github.com/orocrm","followers_url":"https://api.github.com/users/orocrm/followers","following_url":"https://api.github.com/users/orocrm/following{/other_user}","gists_url":"https://api.github.com/users/orocrm/gists{/gist_id}","starred_url":"https://api.github.com/users/orocrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orocrm/subscriptions","organizations_url":"https://api.github.com/users/orocrm/orgs","repos_url":"https://api.github.com/users/orocrm/repos","events_url":"https://api.github.com/users/orocrm/events{/privacy}","received_events_url":"https://api.github.com/users/orocrm/received_events","type":"Organization","site_admin":false},"repo":{"id":22163860,"name":"doctrine-extensions","full_name":"orocrm/doctrine-extensions","owner":{"login":"orocrm","id":4165718,"avatar_url":"https://avatars.githubusercontent.com/u/4165718?v=3","gravatar_id":"","url":"https://api.github.com/users/orocrm","html_url":"https://github.com/orocrm","followers_url":"https://api.github.com/users/orocrm/followers","following_url":"https://api.github.com/users/orocrm/following{/other_user}","gists_url":"https://api.github.com/users/orocrm/gists{/gist_id}","starred_url":"https://api.github.com/users/orocrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orocrm/subscriptions","organizations_url":"https://api.github.com/users/orocrm/orgs","repos_url":"https://api.github.com/users/orocrm/repos","events_url":"https://api.github.com/users/orocrm/events{/privacy}","received_events_url":"https://api.github.com/users/orocrm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/orocrm/doctrine-extensions","description":"Cross database doctrine DQL functions. Supported databases are MySQL and PostgreSQL.","fork":false,"url":"https://api.github.com/repos/orocrm/doctrine-extensions","forks_url":"https://api.github.com/repos/orocrm/doctrine-extensions/forks","keys_url":"https://api.github.com/repos/orocrm/doctrine-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/orocrm/doctrine-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/orocrm/doctrine-extensions/teams","hooks_url":"https://api.github.com/repos/orocrm/doctrine-extensions/hooks","issue_events_url":"https://api.github.com/repos/orocrm/doctrine-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/orocrm/doctrine-extensions/events","assignees_url":"https://api.github.com/repos/orocrm/doctrine-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/orocrm/doctrine-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/orocrm/doctrine-extensions/tags","blobs_url":"https://api.github.com/repos/orocrm/doctrine-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/orocrm/doctrine-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/orocrm/doctrine-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/orocrm/doctrine-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/orocrm/doctrine-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/orocrm/doctrine-extensions/languages","stargazers_url":"https://api.github.com/repos/orocrm/doctrine-extensions/stargazers","contributors_url":"https://api.github.com/repos/orocrm/doctrine-extensions/contributors","subscribers_url":"https://api.github.com/repos/orocrm/doctrine-extensions/subscribers","subscription_url":"https://api.github.com/repos/orocrm/doctrine-extensions/subscription","commits_url":"https://api.github.com/repos/orocrm/doctrine-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/orocrm/doctrine-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/orocrm/doctrine-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/orocrm/doctrine-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/orocrm/doctrine-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/orocrm/doctrine-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/orocrm/doctrine-extensions/merges","archive_url":"https://api.github.com/repos/orocrm/doctrine-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/orocrm/doctrine-extensions/downloads","issues_url":"https://api.github.com/repos/orocrm/doctrine-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/orocrm/doctrine-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/orocrm/doctrine-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/orocrm/doctrine-extensions/labels{/name}","releases_url":"https://api.github.com/repos/orocrm/doctrine-extensions/releases{/id}","created_at":"2014-07-23T17:18:02Z","updated_at":"2015-06-05T01:32:36Z","pushed_at":"2015-06-10T10:27:00Z","git_url":"git://github.com/orocrm/doctrine-extensions.git","ssh_url":"git@github.com:orocrm/doctrine-extensions.git","clone_url":"https://github.com/orocrm/doctrine-extensions.git","svn_url":"https://github.com/orocrm/doctrine-extensions","homepage":"http://www.orocrm.com","size":449,"stargazers_count":35,"watchers_count":35,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls/9"},"html":{"href":"https://github.com/orocrm/doctrine-extensions/pull/9"},"issue":{"href":"https://api.github.com/repos/orocrm/doctrine-extensions/issues/9"},"comments":{"href":"https://api.github.com/repos/orocrm/doctrine-extensions/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/orocrm/doctrine-extensions/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/orocrm/doctrine-extensions/statuses/d6b63a2c95a536479da6bcc6158b3d7e53eee273"}}}}