{"action":"created","comment":{"url":"https://api.github.com/repos/poledev/tristan/pulls/comments/40182173","id":40182173,"diff_hunk":"@@ -0,0 +1,293 @@\n+<?php\n+\n+namespace SensioLabs\\JobBoardBundle\\Entity;\n+\n+use Doctrine\\ORM\\Mapping as ORM;\n+use Gedmo\\Mapping\\Annotation as Gedmo;\n+use Symfony\\Component\\Validator\\Constraints as Assert;\n+\n+/**\n+ * @ORM\\Table()\n+ * @ORM\\Entity\n+ */\n+class Job\n+{\n+    const CONTRACT_FULL_TIME        = 'full-time';\n+    const CONTRACT_PART_TIME        = 'part-time';\n+    const CONTRACT_INTERNSHIP_TIME  = 'internship';\n+    const CONTRACT_FREELANCE_TIME   = 'freelance';\n+    const CONTRACT_ALTERNANCE_TIME  = 'alternance';\n+\n+    CONST CONTRACTS_TYPES = [\n+        self::CONTRACT_FULL_TIME        => 'Full Time',\n+        self::CONTRACT_PART_TIME        => 'Part Time',\n+        self::CONTRACT_INTERNSHIP_TIME  => 'Internship',\n+        self::CONTRACT_FREELANCE_TIME   => 'Freelance',\n+        self::CONTRACT_ALTERNANCE_TIME  => 'Alternance',\n+    ];\n+\n+    /**\n+     * @ORM\\Column(name=\"id\", type=\"integer\")\n+     * @ORM\\Id\n+     * @ORM\\GeneratedValue(strategy=\"AUTO\")\n+     */\n+    private $id;\n+\n+    /**\n+     * @ORM\\Column(name=\"title\", type=\"string\", length=255)\n+     *\n+     * @Assert\\Length(max=255)\n+     * @Assert\\NotBlank(message=\"Job title should not be empty\")\n+     */\n+    private $title;\n+\n+    /**\n+     * @ORM\\Column(name=\"country\", type=\"string\", length=255)\n+     *\n+     * @Assert\\Country()\n+     * @Assert\\NotBlank(message=\"Country should not be empty\")\n+     */\n+    private $country;\n+\n+    /**\n+     * @ORM\\Column(name=\"city\", type=\"string\", length=80)\n+     *\n+     * @Assert\\Length(max=80)\n+     * @Assert\\NotBlank(message=\"City should not be empty\")\n+     */\n+    private $city;\n+\n+    /**\n+     * @ORM\\Column(name=\"contractType\", type=\"string\", length=15)\n+     *\n+     * @Assert\\NotBlank(message=\"Contract must be selected\")\n+     * @Assert\\Length(max=15)\n+     * @Assert\\Choice(callback=\"getContractTypesValues\")\n+     */\n+    private $contractType;\n+\n+    /**\n+     * @ORM\\Column(name=\"description\", type=\"text\")\n+     *\n+     * @Assert\\NotBlank(message=\"Your job offer must be longer.\")\n+     */\n+    private $description;\n+\n+    /**\n+     * @ORM\\Column(name=\"howToApply\", type=\"text\", nullable=true)\n+     */\n+    private $howToApply;\n+\n+    /**\n+     * @ORM\\Column(name=\"name\", type=\"string\", length=255)\n+     *\n+     * @Assert\\Length(max=255)\n+     * @Assert\\NotBlank(message=\"Company should not be empty\")\n+     */\n+    private $company;\n+\n+    /**\n+     * @Gedmo\\Slug(fields={\"title\"})\n+     * @ORM\\Column(length=255, unique=true)\n+     */\n+    private $slug;\n+\n+    public static function getContractTypesValues()","path":"src/SensioLabs/JobBoardBundle/Entity/Job.php","position":95,"original_position":95,"commit_id":"d2ff1070b3cdce49ae398ccb7045318766ff1a0d","original_commit_id":"d2ff1070b3cdce49ae398ccb7045318766ff1a0d","user":{"login":"ogizanagi","id":2211145,"avatar_url":"https://avatars.githubusercontent.com/u/2211145?v=3","gravatar_id":"","url":"https://api.github.com/users/ogizanagi","html_url":"https://github.com/ogizanagi","followers_url":"https://api.github.com/users/ogizanagi/followers","following_url":"https://api.github.com/users/ogizanagi/following{/other_user}","gists_url":"https://api.github.com/users/ogizanagi/gists{/gist_id}","starred_url":"https://api.github.com/users/ogizanagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogizanagi/subscriptions","organizations_url":"https://api.github.com/users/ogizanagi/orgs","repos_url":"https://api.github.com/users/ogizanagi/repos","events_url":"https://api.github.com/users/ogizanagi/events{/privacy}","received_events_url":"https://api.github.com/users/ogizanagi/received_events","type":"User","site_admin":false},"body":"I'm used to have two simple `getContractTypes` and `getReadableContractTypes` methods personally, where the readable ones could be the translation key if supported.","created_at":"2015-09-23T08:56:15Z","updated_at":"2015-09-23T08:56:15Z","html_url":"https://github.com/poledev/tristan/pull/24#discussion_r40182173","pull_request_url":"https://api.github.com/repos/poledev/tristan/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/poledev/tristan/pulls/comments/40182173"},"html":{"href":"https://github.com/poledev/tristan/pull/24#discussion_r40182173"},"pull_request":{"href":"https://api.github.com/repos/poledev/tristan/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/poledev/tristan/pulls/24","id":45676224,"html_url":"https://github.com/poledev/tristan/pull/24","diff_url":"https://github.com/poledev/tristan/pull/24.diff","patch_url":"https://github.com/poledev/tristan/pull/24.patch","issue_url":"https://api.github.com/repos/poledev/tristan/issues/24","number":24,"state":"open","locked":false,"title":"02_As a user, I need to preview an announcement I just created","user":{"login":"Nicofuma","id":591456,"avatar_url":"https://avatars.githubusercontent.com/u/591456?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicofuma","html_url":"https://github.com/Nicofuma","followers_url":"https://api.github.com/users/Nicofuma/followers","following_url":"https://api.github.com/users/Nicofuma/following{/other_user}","gists_url":"https://api.github.com/users/Nicofuma/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicofuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicofuma/subscriptions","organizations_url":"https://api.github.com/users/Nicofuma/orgs","repos_url":"https://api.github.com/users/Nicofuma/repos","events_url":"https://api.github.com/users/Nicofuma/events{/privacy}","received_events_url":"https://api.github.com/users/Nicofuma/received_events","type":"User","site_admin":false},"body":"Issue: #6","created_at":"2015-09-22T15:15:20Z","updated_at":"2015-09-23T08:56:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fad79eb87b11a37d3171dd727ad429fc3eed2149","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/poledev/tristan/pulls/24/commits","review_comments_url":"https://api.github.com/repos/poledev/tristan/pulls/24/comments","review_comment_url":"https://api.github.com/repos/poledev/tristan/pulls/comments{/number}","comments_url":"https://api.github.com/repos/poledev/tristan/issues/24/comments","statuses_url":"https://api.github.com/repos/poledev/tristan/statuses/d2ff1070b3cdce49ae398ccb7045318766ff1a0d","head":{"label":"Nicofuma:story/2","ref":"story/2","sha":"d2ff1070b3cdce49ae398ccb7045318766ff1a0d","user":{"login":"Nicofuma","id":591456,"avatar_url":"https://avatars.githubusercontent.com/u/591456?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicofuma","html_url":"https://github.com/Nicofuma","followers_url":"https://api.github.com/users/Nicofuma/followers","following_url":"https://api.github.com/users/Nicofuma/following{/other_user}","gists_url":"https://api.github.com/users/Nicofuma/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicofuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicofuma/subscriptions","organizations_url":"https://api.github.com/users/Nicofuma/orgs","repos_url":"https://api.github.com/users/Nicofuma/repos","events_url":"https://api.github.com/users/Nicofuma/events{/privacy}","received_events_url":"https://api.github.com/users/Nicofuma/received_events","type":"User","site_admin":false},"repo":{"id":42873955,"name":"tristan","full_name":"Nicofuma/tristan","owner":{"login":"Nicofuma","id":591456,"avatar_url":"https://avatars.githubusercontent.com/u/591456?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicofuma","html_url":"https://github.com/Nicofuma","followers_url":"https://api.github.com/users/Nicofuma/followers","following_url":"https://api.github.com/users/Nicofuma/following{/other_user}","gists_url":"https://api.github.com/users/Nicofuma/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicofuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicofuma/subscriptions","organizations_url":"https://api.github.com/users/Nicofuma/orgs","repos_url":"https://api.github.com/users/Nicofuma/repos","events_url":"https://api.github.com/users/Nicofuma/events{/privacy}","received_events_url":"https://api.github.com/users/Nicofuma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nicofuma/tristan","description":null,"fork":true,"url":"https://api.github.com/repos/Nicofuma/tristan","forks_url":"https://api.github.com/repos/Nicofuma/tristan/forks","keys_url":"https://api.github.com/repos/Nicofuma/tristan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nicofuma/tristan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nicofuma/tristan/teams","hooks_url":"https://api.github.com/repos/Nicofuma/tristan/hooks","issue_events_url":"https://api.github.com/repos/Nicofuma/tristan/issues/events{/number}","events_url":"https://api.github.com/repos/Nicofuma/tristan/events","assignees_url":"https://api.github.com/repos/Nicofuma/tristan/assignees{/user}","branches_url":"https://api.github.com/repos/Nicofuma/tristan/branches{/branch}","tags_url":"https://api.github.com/repos/Nicofuma/tristan/tags","blobs_url":"https://api.github.com/repos/Nicofuma/tristan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nicofuma/tristan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nicofuma/tristan/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nicofuma/tristan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nicofuma/tristan/statuses/{sha}","languages_url":"https://api.github.com/repos/Nicofuma/tristan/languages","stargazers_url":"https://api.github.com/repos/Nicofuma/tristan/stargazers","contributors_url":"https://api.github.com/repos/Nicofuma/tristan/contributors","subscribers_url":"https://api.github.com/repos/Nicofuma/tristan/subscribers","subscription_url":"https://api.github.com/repos/Nicofuma/tristan/subscription","commits_url":"https://api.github.com/repos/Nicofuma/tristan/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nicofuma/tristan/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nicofuma/tristan/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nicofuma/tristan/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nicofuma/tristan/contents/{+path}","compare_url":"https://api.github.com/repos/Nicofuma/tristan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nicofuma/tristan/merges","archive_url":"https://api.github.com/repos/Nicofuma/tristan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nicofuma/tristan/downloads","issues_url":"https://api.github.com/repos/Nicofuma/tristan/issues{/number}","pulls_url":"https://api.github.com/repos/Nicofuma/tristan/pulls{/number}","milestones_url":"https://api.github.com/repos/Nicofuma/tristan/milestones{/number}","notifications_url":"https://api.github.com/repos/Nicofuma/tristan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nicofuma/tristan/labels{/name}","releases_url":"https://api.github.com/repos/Nicofuma/tristan/releases{/id}","created_at":"2015-09-21T15:08:33Z","updated_at":"2015-09-21T15:08:34Z","pushed_at":"2015-09-23T08:49:39Z","git_url":"git://github.com/Nicofuma/tristan.git","ssh_url":"git@github.com:Nicofuma/tristan.git","clone_url":"https://github.com/Nicofuma/tristan.git","svn_url":"https://github.com/Nicofuma/tristan","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"poledev:master","ref":"master","sha":"6d7fdd1a0637e65882a38bf336ecb8a4714952a7","user":{"login":"poledev","id":6369679,"avatar_url":"https://avatars.githubusercontent.com/u/6369679?v=3","gravatar_id":"","url":"https://api.github.com/users/poledev","html_url":"https://github.com/poledev","followers_url":"https://api.github.com/users/poledev/followers","following_url":"https://api.github.com/users/poledev/following{/other_user}","gists_url":"https://api.github.com/users/poledev/gists{/gist_id}","starred_url":"https://api.github.com/users/poledev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poledev/subscriptions","organizations_url":"https://api.github.com/users/poledev/orgs","repos_url":"https://api.github.com/users/poledev/repos","events_url":"https://api.github.com/users/poledev/events{/privacy}","received_events_url":"https://api.github.com/users/poledev/received_events","type":"Organization","site_admin":false},"repo":{"id":42861301,"name":"tristan","full_name":"poledev/tristan","owner":{"login":"poledev","id":6369679,"avatar_url":"https://avatars.githubusercontent.com/u/6369679?v=3","gravatar_id":"","url":"https://api.github.com/users/poledev","html_url":"https://github.com/poledev","followers_url":"https://api.github.com/users/poledev/followers","following_url":"https://api.github.com/users/poledev/following{/other_user}","gists_url":"https://api.github.com/users/poledev/gists{/gist_id}","starred_url":"https://api.github.com/users/poledev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poledev/subscriptions","organizations_url":"https://api.github.com/users/poledev/orgs","repos_url":"https://api.github.com/users/poledev/repos","events_url":"https://api.github.com/users/poledev/events{/privacy}","received_events_url":"https://api.github.com/users/poledev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/poledev/tristan","description":null,"fork":false,"url":"https://api.github.com/repos/poledev/tristan","forks_url":"https://api.github.com/repos/poledev/tristan/forks","keys_url":"https://api.github.com/repos/poledev/tristan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poledev/tristan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poledev/tristan/teams","hooks_url":"https://api.github.com/repos/poledev/tristan/hooks","issue_events_url":"https://api.github.com/repos/poledev/tristan/issues/events{/number}","events_url":"https://api.github.com/repos/poledev/tristan/events","assignees_url":"https://api.github.com/repos/poledev/tristan/assignees{/user}","branches_url":"https://api.github.com/repos/poledev/tristan/branches{/branch}","tags_url":"https://api.github.com/repos/poledev/tristan/tags","blobs_url":"https://api.github.com/repos/poledev/tristan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poledev/tristan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poledev/tristan/git/refs{/sha}","trees_url":"https://api.github.com/repos/poledev/tristan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poledev/tristan/statuses/{sha}","languages_url":"https://api.github.com/repos/poledev/tristan/languages","stargazers_url":"https://api.github.com/repos/poledev/tristan/stargazers","contributors_url":"https://api.github.com/repos/poledev/tristan/contributors","subscribers_url":"https://api.github.com/repos/poledev/tristan/subscribers","subscription_url":"https://api.github.com/repos/poledev/tristan/subscription","commits_url":"https://api.github.com/repos/poledev/tristan/commits{/sha}","git_commits_url":"https://api.github.com/repos/poledev/tristan/git/commits{/sha}","comments_url":"https://api.github.com/repos/poledev/tristan/comments{/number}","issue_comment_url":"https://api.github.com/repos/poledev/tristan/issues/comments{/number}","contents_url":"https://api.github.com/repos/poledev/tristan/contents/{+path}","compare_url":"https://api.github.com/repos/poledev/tristan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poledev/tristan/merges","archive_url":"https://api.github.com/repos/poledev/tristan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poledev/tristan/downloads","issues_url":"https://api.github.com/repos/poledev/tristan/issues{/number}","pulls_url":"https://api.github.com/repos/poledev/tristan/pulls{/number}","milestones_url":"https://api.github.com/repos/poledev/tristan/milestones{/number}","notifications_url":"https://api.github.com/repos/poledev/tristan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poledev/tristan/labels{/name}","releases_url":"https://api.github.com/repos/poledev/tristan/releases{/id}","created_at":"2015-09-21T11:07:58Z","updated_at":"2015-09-21T11:08:15Z","pushed_at":"2015-09-23T08:49:39Z","git_url":"git://github.com/poledev/tristan.git","ssh_url":"git@github.com:poledev/tristan.git","clone_url":"https://github.com/poledev/tristan.git","svn_url":"https://github.com/poledev/tristan","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":23,"forks":1,"open_issues":23,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/poledev/tristan/pulls/24"},"html":{"href":"https://github.com/poledev/tristan/pull/24"},"issue":{"href":"https://api.github.com/repos/poledev/tristan/issues/24"},"comments":{"href":"https://api.github.com/repos/poledev/tristan/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/poledev/tristan/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/poledev/tristan/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/poledev/tristan/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/poledev/tristan/statuses/d2ff1070b3cdce49ae398ccb7045318766ff1a0d"}}}}