{"action":"created","comment":{"url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls/comments/82418240","pull_request_review_id":3329336,"id":82418240,"diff_hunk":"@@ -0,0 +1,268 @@\n+<?php\n+\n+namespace SensioLabs\\JobBoardBundle\\Entity;\n+\n+use Doctrine\\ORM\\Mapping as ORM;\n+use Symfony\\Component\\Validator\\Constraints as Assert;\n+\n+/**\n+ * Announcement Entity.\n+ *\n+ * @ORM\\Entity\n+ *\n+ * @author Dimitri Gritsajuk <dimitri.gritsajuk@sensiolabs.com>\n+ */\n+class Announcement\n+{\n+    /**\n+     * @var int\n+     *\n+     * @ORM\\Column()\n+     * @ORM\\Id\n+     * @ORM\\GeneratedValue(strategy=\"AUTO\")\n+     */\n+    private $id;\n+\n+    /**\n+     * @var string\n+     *\n+     * @ORM\\Column()\n+     * @Assert\\NotBlank(message=\"Job title should not be empty\")\n+     */\n+    private $title;\n+\n+    /**\n+     * @var string\n+     *\n+     * @ORM\\Column()\n+     * @Assert\\NotBlank(message=\"Company should not be empty\")\n+     */\n+    private $company;\n+\n+    /**\n+     * @var string\n+     *\n+     * @ORM\\Column(length=2)\n+     * @Assert\\NotBlank(message=\"Country should not be empty\")\n+     */\n+    private $country;\n+\n+    /**\n+     * @var string\n+     *\n+     * @ORM\\Column()\n+     * @Assert\\NotBlank(message=\"City should not be empty\")\n+     */\n+    private $city;\n+\n+    /**\n+     * @var int\n+     *\n+     * @ORM\\Column(type=\"integer\")\n+     * @Assert\\NotBlank(message=\"Contract type must be selected\")\n+     */\n+    private $contractType;\n+\n+    /**\n+     * @var string\n+     *\n+     * @ORM\\Column(type=\"text\")\n+     * @Assert\\NotBlank(message=\"Your job offer must be longer\")\n+     */\n+    private $description;\n+\n+    /**\n+     * @var string\n+     *\n+     * @ORM\\Column(nullable=true)\n+     */\n+    private $howToApply;\n+\n+    /**\n+     * @var \\DateTime\n+     *\n+     * @ORM\\Column(type=\"datetime\", nullable=true)\n+     */\n+    private $publishedAt;\n+\n+    /**\n+     * @var \\DateTime\n+     *\n+     * @ORM\\Column(type=\"datetime\")\n+     */\n+    private $createdAt;\n+\n+    /**\n+     * @var bool\n+     *\n+     * @ORM\\Column(type=\"boolean\")\n+     */\n+    private $published = false;","path":"src/SensioLabs/JobBoardBundle/Entity/Announcement.php","position":100,"original_position":100,"commit_id":"e6c3710e8db195ff805373f52204029bb9ffbdd6","original_commit_id":"e6c3710e8db195ff805373f52204029bb9ffbdd6","user":{"login":"hhamon","id":235550,"avatar_url":"https://avatars.githubusercontent.com/u/235550?v=3","gravatar_id":"","url":"https://api.github.com/users/hhamon","html_url":"https://github.com/hhamon","followers_url":"https://api.github.com/users/hhamon/followers","following_url":"https://api.github.com/users/hhamon/following{/other_user}","gists_url":"https://api.github.com/users/hhamon/gists{/gist_id}","starred_url":"https://api.github.com/users/hhamon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhamon/subscriptions","organizations_url":"https://api.github.com/users/hhamon/orgs","repos_url":"https://api.github.com/users/hhamon/repos","events_url":"https://api.github.com/users/hhamon/events{/privacy}","received_events_url":"https://api.github.com/users/hhamon/received_events","type":"User","site_admin":false},"body":"You can move affectation in the construct method.","created_at":"2016-10-07T15:59:48Z","updated_at":"2016-10-07T16:01:13Z","html_url":"https://github.com/sensiolabscc/jobs-dimitri/pull/46#discussion_r82418240","pull_request_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls/comments/82418240"},"html":{"href":"https://github.com/sensiolabscc/jobs-dimitri/pull/46#discussion_r82418240"},"pull_request":{"href":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls/46","id":88231347,"html_url":"https://github.com/sensiolabscc/jobs-dimitri/pull/46","diff_url":"https://github.com/sensiolabscc/jobs-dimitri/pull/46.diff","patch_url":"https://github.com/sensiolabscc/jobs-dimitri/pull/46.patch","issue_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/issues/46","number":46,"state":"open","locked":false,"title":"Add the announcement creation page ","user":{"login":"ottaviano","id":4582866,"avatar_url":"https://avatars.githubusercontent.com/u/4582866?v=3","gravatar_id":"","url":"https://api.github.com/users/ottaviano","html_url":"https://github.com/ottaviano","followers_url":"https://api.github.com/users/ottaviano/followers","following_url":"https://api.github.com/users/ottaviano/following{/other_user}","gists_url":"https://api.github.com/users/ottaviano/gists{/gist_id}","starred_url":"https://api.github.com/users/ottaviano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottaviano/subscriptions","organizations_url":"https://api.github.com/users/ottaviano/orgs","repos_url":"https://api.github.com/users/ottaviano/repos","events_url":"https://api.github.com/users/ottaviano/events{/privacy}","received_events_url":"https://api.github.com/users/ottaviano/received_events","type":"User","site_admin":false},"body":"Page for creating an announcement\r\nissue #1","created_at":"2016-10-06T09:57:21Z","updated_at":"2016-10-07T16:01:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"398d687b4176f9710830e5cf1e3afc8137b6e266","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls/46/commits","review_comments_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls/46/comments","review_comment_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/issues/46/comments","statuses_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/statuses/e6c3710e8db195ff805373f52204029bb9ffbdd6","head":{"label":"sensiolabscc:i-1-announcement-post","ref":"i-1-announcement-post","sha":"e6c3710e8db195ff805373f52204029bb9ffbdd6","user":{"login":"sensiolabscc","id":18448566,"avatar_url":"https://avatars.githubusercontent.com/u/18448566?v=3","gravatar_id":"","url":"https://api.github.com/users/sensiolabscc","html_url":"https://github.com/sensiolabscc","followers_url":"https://api.github.com/users/sensiolabscc/followers","following_url":"https://api.github.com/users/sensiolabscc/following{/other_user}","gists_url":"https://api.github.com/users/sensiolabscc/gists{/gist_id}","starred_url":"https://api.github.com/users/sensiolabscc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensiolabscc/subscriptions","organizations_url":"https://api.github.com/users/sensiolabscc/orgs","repos_url":"https://api.github.com/users/sensiolabscc/repos","events_url":"https://api.github.com/users/sensiolabscc/events{/privacy}","received_events_url":"https://api.github.com/users/sensiolabscc/received_events","type":"Organization","site_admin":false},"repo":{"id":69850276,"name":"jobs-dimitri","full_name":"sensiolabscc/jobs-dimitri","owner":{"login":"sensiolabscc","id":18448566,"avatar_url":"https://avatars.githubusercontent.com/u/18448566?v=3","gravatar_id":"","url":"https://api.github.com/users/sensiolabscc","html_url":"https://github.com/sensiolabscc","followers_url":"https://api.github.com/users/sensiolabscc/followers","following_url":"https://api.github.com/users/sensiolabscc/following{/other_user}","gists_url":"https://api.github.com/users/sensiolabscc/gists{/gist_id}","starred_url":"https://api.github.com/users/sensiolabscc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensiolabscc/subscriptions","organizations_url":"https://api.github.com/users/sensiolabscc/orgs","repos_url":"https://api.github.com/users/sensiolabscc/repos","events_url":"https://api.github.com/users/sensiolabscc/events{/privacy}","received_events_url":"https://api.github.com/users/sensiolabscc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sensiolabscc/jobs-dimitri","description":null,"fork":false,"url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri","forks_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/forks","keys_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/teams","hooks_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/hooks","issue_events_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/issues/events{/number}","events_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/events","assignees_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/assignees{/user}","branches_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/branches{/branch}","tags_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/tags","blobs_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/git/refs{/sha}","trees_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/statuses/{sha}","languages_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/languages","stargazers_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/stargazers","contributors_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/contributors","subscribers_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/subscribers","subscription_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/subscription","commits_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/commits{/sha}","git_commits_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/git/commits{/sha}","comments_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/comments{/number}","issue_comment_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/issues/comments{/number}","contents_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/contents/{+path}","compare_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/merges","archive_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/downloads","issues_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/issues{/number}","pulls_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls{/number}","milestones_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/milestones{/number}","notifications_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/labels{/name}","releases_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/releases{/id}","deployments_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/deployments","created_at":"2016-10-03T07:43:10Z","updated_at":"2016-10-03T09:04:11Z","pushed_at":"2016-10-07T15:48:11Z","git_url":"git://github.com/sensiolabscc/jobs-dimitri.git","ssh_url":"git@github.com:sensiolabscc/jobs-dimitri.git","clone_url":"https://github.com/sensiolabscc/jobs-dimitri.git","svn_url":"https://github.com/sensiolabscc/jobs-dimitri","homepage":null,"size":413,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":0,"default_branch":"master"}},"base":{"label":"sensiolabscc:master","ref":"master","sha":"fec7c53e1165191e7896399c18a03a4584745697","user":{"login":"sensiolabscc","id":18448566,"avatar_url":"https://avatars.githubusercontent.com/u/18448566?v=3","gravatar_id":"","url":"https://api.github.com/users/sensiolabscc","html_url":"https://github.com/sensiolabscc","followers_url":"https://api.github.com/users/sensiolabscc/followers","following_url":"https://api.github.com/users/sensiolabscc/following{/other_user}","gists_url":"https://api.github.com/users/sensiolabscc/gists{/gist_id}","starred_url":"https://api.github.com/users/sensiolabscc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensiolabscc/subscriptions","organizations_url":"https://api.github.com/users/sensiolabscc/orgs","repos_url":"https://api.github.com/users/sensiolabscc/repos","events_url":"https://api.github.com/users/sensiolabscc/events{/privacy}","received_events_url":"https://api.github.com/users/sensiolabscc/received_events","type":"Organization","site_admin":false},"repo":{"id":69850276,"name":"jobs-dimitri","full_name":"sensiolabscc/jobs-dimitri","owner":{"login":"sensiolabscc","id":18448566,"avatar_url":"https://avatars.githubusercontent.com/u/18448566?v=3","gravatar_id":"","url":"https://api.github.com/users/sensiolabscc","html_url":"https://github.com/sensiolabscc","followers_url":"https://api.github.com/users/sensiolabscc/followers","following_url":"https://api.github.com/users/sensiolabscc/following{/other_user}","gists_url":"https://api.github.com/users/sensiolabscc/gists{/gist_id}","starred_url":"https://api.github.com/users/sensiolabscc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensiolabscc/subscriptions","organizations_url":"https://api.github.com/users/sensiolabscc/orgs","repos_url":"https://api.github.com/users/sensiolabscc/repos","events_url":"https://api.github.com/users/sensiolabscc/events{/privacy}","received_events_url":"https://api.github.com/users/sensiolabscc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sensiolabscc/jobs-dimitri","description":null,"fork":false,"url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri","forks_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/forks","keys_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/teams","hooks_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/hooks","issue_events_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/issues/events{/number}","events_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/events","assignees_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/assignees{/user}","branches_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/branches{/branch}","tags_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/tags","blobs_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/git/refs{/sha}","trees_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/statuses/{sha}","languages_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/languages","stargazers_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/stargazers","contributors_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/contributors","subscribers_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/subscribers","subscription_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/subscription","commits_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/commits{/sha}","git_commits_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/git/commits{/sha}","comments_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/comments{/number}","issue_comment_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/issues/comments{/number}","contents_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/contents/{+path}","compare_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/merges","archive_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/downloads","issues_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/issues{/number}","pulls_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls{/number}","milestones_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/milestones{/number}","notifications_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/labels{/name}","releases_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/releases{/id}","deployments_url":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/deployments","created_at":"2016-10-03T07:43:10Z","updated_at":"2016-10-03T09:04:11Z","pushed_at":"2016-10-07T15:48:11Z","git_url":"git://github.com/sensiolabscc/jobs-dimitri.git","ssh_url":"git@github.com:sensiolabscc/jobs-dimitri.git","clone_url":"https://github.com/sensiolabscc/jobs-dimitri.git","svn_url":"https://github.com/sensiolabscc/jobs-dimitri","homepage":null,"size":413,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls/46"},"html":{"href":"https://github.com/sensiolabscc/jobs-dimitri/pull/46"},"issue":{"href":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/issues/46"},"comments":{"href":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/sensiolabscc/jobs-dimitri/statuses/e6c3710e8db195ff805373f52204029bb9ffbdd6"}}}}
{"actor":{"display_login":"hhamon"}}