{"action":"created","issue":{"url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/1707","repository_url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions","labels_url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/1707/labels{/name}","comments_url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/1707/comments","events_url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/1707/events","html_url":"https://github.com/Atlantic18/DoctrineExtensions/issues/1707","id":191571556,"number":1707,"title":"Sluggable -> Document -> date type + dateFormat","user":{"login":"KASTINpl","id":4272347,"avatar_url":"https://avatars.githubusercontent.com/u/4272347?v=3","gravatar_id":"","url":"https://api.github.com/users/KASTINpl","html_url":"https://github.com/KASTINpl","followers_url":"https://api.github.com/users/KASTINpl/followers","following_url":"https://api.github.com/users/KASTINpl/following{/other_user}","gists_url":"https://api.github.com/users/KASTINpl/gists{/gist_id}","starred_url":"https://api.github.com/users/KASTINpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KASTINpl/subscriptions","organizations_url":"https://api.github.com/users/KASTINpl/orgs","repos_url":"https://api.github.com/users/KASTINpl/repos","events_url":"https://api.github.com/users/KASTINpl/events{/privacy}","received_events_url":"https://api.github.com/users/KASTINpl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-24T17:47:35Z","updated_at":"2016-11-24T18:45:22Z","closed_at":null,"body":"```\r\n/** @MongoDB\\Document() */\r\nclass Document {\r\n// [..]\r\n/**\r\n     * @Gedmo\\Slug(fields={\"title\", \"createdAt\"}, unique=true, separator=\"-\", dateFormat=\"Y\")\r\n     * @MongoDB\\Field(type=\"string\")\r\n*/\r\nprotected $slug;\r\n/**\r\n     * @var \\DateTime $createdAt\r\n     * @MongoDB\\Field(type=\"date\", name=\"created_at\")\r\n     * @Gedmo\\Timestampable(on=\"create\")\r\n*/\r\nprotected $createdAt;\r\n}\r\n```\r\n\r\nerror:\r\n`Cannot use field - [createdAt] for slug storage, type is not valid and must be 'string' or 'text' in class - Document`\r\n\r\nhttps://github.com/Atlantic18/DoctrineExtensions/blob/master/lib/Gedmo/Sluggable/Mapping/Driver/Annotation.php#L47\r\nfor mongo should be\r\n```\r\nprotected $validTypes = array(\r\n// ...\r\n        'date',\r\n// ...\r\n);\r\n```"},"comment":{"url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/comments/262831120","html_url":"https://github.com/Atlantic18/DoctrineExtensions/issues/1707#issuecomment-262831120","issue_url":"https://api.github.com/repos/Atlantic18/DoctrineExtensions/issues/1707","id":262831120,"user":{"login":"l3pp4rd","id":132389,"avatar_url":"https://avatars.githubusercontent.com/u/132389?v=3","gravatar_id":"","url":"https://api.github.com/users/l3pp4rd","html_url":"https://github.com/l3pp4rd","followers_url":"https://api.github.com/users/l3pp4rd/followers","following_url":"https://api.github.com/users/l3pp4rd/following{/other_user}","gists_url":"https://api.github.com/users/l3pp4rd/gists{/gist_id}","starred_url":"https://api.github.com/users/l3pp4rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l3pp4rd/subscriptions","organizations_url":"https://api.github.com/users/l3pp4rd/orgs","repos_url":"https://api.github.com/users/l3pp4rd/repos","events_url":"https://api.github.com/users/l3pp4rd/events{/privacy}","received_events_url":"https://api.github.com/users/l3pp4rd/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T18:45:22Z","updated_at":"2016-11-24T18:45:22Z","body":"not allowed means not allowed. if you want to manage that type, fork extensions. why, because there are tons of issues converting dates or datetimes to string associated to timezones and formats and etc.."}}
{"actor":{"display_login":"l3pp4rd"}}