{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/6985","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/6985/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/6985/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/6985/events","html_url":"https://github.com/cakephp/cakephp/pull/6985","id":94034714,"number":6985,"title":"Allowing Custom Database type to behave as native ones","user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/Enhancement","name":"Enhancement","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/47","html_url":"https://github.com/cakephp/cakephp/milestones/3.0.9","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/47/labels","id":1184300,"number":47,"title":"3.0.9","description":"Bugfixes and minor improvements for 3.0.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":48,"state":"open","created_at":"2015-06-28T17:20:20Z","updated_at":"2015-07-09T12:37:25Z","due_on":"2015-07-12T04:00:00Z","closed_at":null},"comments":1,"created_at":"2015-07-09T12:25:24Z","updated_at":"2015-07-09T13:22:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/6985","html_url":"https://github.com/cakephp/cakephp/pull/6985","diff_url":"https://github.com/cakephp/cakephp/pull/6985.diff","patch_url":"https://github.com/cakephp/cakephp/pull/6985.patch"},"body":"When using custom database types, for example when implementing a `JsonType` class, it was not possible to tell the form helper to use a specific type of widget.\r\n\r\nIn the case of a `JsonType` the most sensible widget would be to use a `textarea`. This pull requests make it possible for custom Type objects to tell cakephp what native data type they are covering.\r\n\r\nThe way to do it is by implementing a `getBaseType()` function in the Type classes:\r\n\r\n```php\r\npublic function getBaseType()\r\n{\r\n    return 'text'; // or integer, or string, or datetime....\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/119962436","html_url":"https://github.com/cakephp/cakephp/pull/6985#issuecomment-119962436","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/6985","id":119962436,"user":{"login":"ADmad","id":142658,"avatar_url":"https://avatars.githubusercontent.com/u/142658?v=3","gravatar_id":"","url":"https://api.github.com/users/ADmad","html_url":"https://github.com/ADmad","followers_url":"https://api.github.com/users/ADmad/followers","following_url":"https://api.github.com/users/ADmad/following{/other_user}","gists_url":"https://api.github.com/users/ADmad/gists{/gist_id}","starred_url":"https://api.github.com/users/ADmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ADmad/subscriptions","organizations_url":"https://api.github.com/users/ADmad/orgs","repos_url":"https://api.github.com/users/ADmad/repos","events_url":"https://api.github.com/users/ADmad/events{/privacy}","received_events_url":"https://api.github.com/users/ADmad/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T13:22:18Z","updated_at":"2015-07-09T13:22:18Z","body":"Postgres builds are failing"}}