{"action":"created","comment":{"url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/comments/184930717","pull_request_review_id":116218481,"id":184930717,"diff_hunk":"@@ -0,0 +1,89 @@\n+<?php\n+\n+namespace App\\Entity;\n+\n+use Doctrine\\Common\\Collections\\ArrayCollection;\n+use Doctrine\\Common\\Collections\\Collection;\n+use Doctrine\\ORM\\Mapping as ORM;\n+\n+/**\n+ * @ORM\\Entity(repositoryClass=\"App\\Repository\\CategoryRepository\")\n+ * @ORM\\Table(name=\"categories\")\n+ */\n+class Category\n+{\n+    /**\n+     * @ORM\\Id()\n+     * @ORM\\GeneratedValue()\n+     * @ORM\\Column(type=\"integer\")\n+     */\n+    private $id;\n+\n+    /**\n+     * @ORM\\ManyToMany(targetEntity=\"Affiliate\", mappedBy=\"categories\")\n+     */\n+    private $affiliates;\n+\n+    /**\n+     * @ORM\\Column(type=\"string\", length=255)\n+     */\n+    private $name;\n+\n+    /**\n+     * @ORM\\OneToMany(targetEntity=\"App\\Entity\\Job\", mappedBy=\"category\")\n+     */\n+    private $jobs;\n+\n+    public function __construct()\n+    {\n+        $this->jobs = new ArrayCollection();\n+    }\n+\n+    public function getId()\n+    {\n+        return $this->id;\n+    }\n+\n+    public function getName(): ?string\n+    {\n+        return $this->name;\n+    }\n+\n+    public function setName(string $name): self\n+    {\n+        $this->name = $name;\n+\n+        return $this;\n+    }\n+\n+    /**\n+     * @return Collection|Job[]\n+     */\n+    public function getJobs(): Collection\n+    {\n+        return $this->jobs;\n+    }\n+\n+    public function addJob(Job $job): self\n+    {\n+        if (!$this->jobs->contains($job)) {\n+            $this->jobs[] = $job;\n+            $job->setCategoryId($this);\n+        }\n+\n+        return $this;\n+    }\n+\n+    public function removeJob(Job $job): self\n+    {\n+        if ($this->jobs->contains($job)) {\n+            $this->jobs->removeElement($job);\n+            // set the owning side to null (unless already changed)\n+            if ($job->getCategoryId() === $this) {","path":"src/Entity/Category.php","position":82,"original_position":82,"commit_id":"8a122a315a6bee616f379a76b034896083773c3f","original_commit_id":"8a122a315a6bee616f379a76b034896083773c3f","user":{"login":"gregurco","id":4052904,"avatar_url":"https://avatars0.githubusercontent.com/u/4052904?v=4","gravatar_id":"","url":"https://api.github.com/users/gregurco","html_url":"https://github.com/gregurco","followers_url":"https://api.github.com/users/gregurco/followers","following_url":"https://api.github.com/users/gregurco/following{/other_user}","gists_url":"https://api.github.com/users/gregurco/gists{/gist_id}","starred_url":"https://api.github.com/users/gregurco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregurco/subscriptions","organizations_url":"https://api.github.com/users/gregurco/orgs","repos_url":"https://api.github.com/users/gregurco/repos","events_url":"https://api.github.com/users/gregurco/events{/privacy}","received_events_url":"https://api.github.com/users/gregurco/received_events","type":"User","site_admin":false},"body":"remove this `if`","created_at":"2018-04-30T08:18:40Z","updated_at":"2018-04-30T08:26:56Z","html_url":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony/pull/23#discussion_r184930717","pull_request_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/23","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/comments/184930717"},"html":{"href":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony/pull/23#discussion_r184930717"},"pull_request":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/23","id":184860887,"html_url":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony/pull/23","diff_url":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony/pull/23.diff","patch_url":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony/pull/23.patch","issue_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/issues/23","number":23,"state":"open","locked":false,"title":"Controllers, Views, Fixtures","user":{"login":"sergiu17","id":22868352,"avatar_url":"https://avatars3.githubusercontent.com/u/22868352?v=4","gravatar_id":"","url":"https://api.github.com/users/sergiu17","html_url":"https://github.com/sergiu17","followers_url":"https://api.github.com/users/sergiu17/followers","following_url":"https://api.github.com/users/sergiu17/following{/other_user}","gists_url":"https://api.github.com/users/sergiu17/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiu17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiu17/subscriptions","organizations_url":"https://api.github.com/users/sergiu17/orgs","repos_url":"https://api.github.com/users/sergiu17/repos","events_url":"https://api.github.com/users/sergiu17/events{/privacy}","received_events_url":"https://api.github.com/users/sergiu17/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-29T23:24:50Z","updated_at":"2018-04-30T08:26:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b3b8b86d9e9db345bc80ee0587255ccdc576be5f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/23/commits","review_comments_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/23/comments","review_comment_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/comments{/number}","comments_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/issues/23/comments","statuses_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/statuses/8a122a315a6bee616f379a76b034896083773c3f","head":{"label":"sergiu17:master","ref":"master","sha":"8a122a315a6bee616f379a76b034896083773c3f","user":{"login":"sergiu17","id":22868352,"avatar_url":"https://avatars3.githubusercontent.com/u/22868352?v=4","gravatar_id":"","url":"https://api.github.com/users/sergiu17","html_url":"https://github.com/sergiu17","followers_url":"https://api.github.com/users/sergiu17/followers","following_url":"https://api.github.com/users/sergiu17/following{/other_user}","gists_url":"https://api.github.com/users/sergiu17/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiu17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiu17/subscriptions","organizations_url":"https://api.github.com/users/sergiu17/orgs","repos_url":"https://api.github.com/users/sergiu17/repos","events_url":"https://api.github.com/users/sergiu17/events{/privacy}","received_events_url":"https://api.github.com/users/sergiu17/received_events","type":"User","site_admin":false},"repo":{"id":131537396,"name":"Homework-Symfony-Symfony","full_name":"sergiu17/Homework-Symfony-Symfony","owner":{"login":"sergiu17","id":22868352,"avatar_url":"https://avatars3.githubusercontent.com/u/22868352?v=4","gravatar_id":"","url":"https://api.github.com/users/sergiu17","html_url":"https://github.com/sergiu17","followers_url":"https://api.github.com/users/sergiu17/followers","following_url":"https://api.github.com/users/sergiu17/following{/other_user}","gists_url":"https://api.github.com/users/sergiu17/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiu17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiu17/subscriptions","organizations_url":"https://api.github.com/users/sergiu17/orgs","repos_url":"https://api.github.com/users/sergiu17/repos","events_url":"https://api.github.com/users/sergiu17/events{/privacy}","received_events_url":"https://api.github.com/users/sergiu17/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sergiu17/Homework-Symfony-Symfony","description":null,"fork":true,"url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony","forks_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/forks","keys_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/teams","hooks_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/hooks","issue_events_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/issues/events{/number}","events_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/events","assignees_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/assignees{/user}","branches_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/branches{/branch}","tags_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/tags","blobs_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/languages","stargazers_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/stargazers","contributors_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/contributors","subscribers_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/subscribers","subscription_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/subscription","commits_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/contents/{+path}","compare_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/merges","archive_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/downloads","issues_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/issues{/number}","pulls_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/labels{/name}","releases_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/releases{/id}","deployments_url":"https://api.github.com/repos/sergiu17/Homework-Symfony-Symfony/deployments","created_at":"2018-04-29T23:12:18Z","updated_at":"2018-04-29T23:20:55Z","pushed_at":"2018-04-29T23:20:54Z","git_url":"git://github.com/sergiu17/Homework-Symfony-Symfony.git","ssh_url":"git@github.com:sergiu17/Homework-Symfony-Symfony.git","clone_url":"https://github.com/sergiu17/Homework-Symfony-Symfony.git","svn_url":"https://github.com/sergiu17/Homework-Symfony-Symfony","homepage":null,"size":10374,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"P5CHI-Web-Academy:sbogos","ref":"sbogos","sha":"ee21e2be1fea8de8fbbd366167b46b7871cd3180","user":{"login":"P5CHI-Web-Academy","id":37544081,"avatar_url":"https://avatars0.githubusercontent.com/u/37544081?v=4","gravatar_id":"","url":"https://api.github.com/users/P5CHI-Web-Academy","html_url":"https://github.com/P5CHI-Web-Academy","followers_url":"https://api.github.com/users/P5CHI-Web-Academy/followers","following_url":"https://api.github.com/users/P5CHI-Web-Academy/following{/other_user}","gists_url":"https://api.github.com/users/P5CHI-Web-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/P5CHI-Web-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/P5CHI-Web-Academy/subscriptions","organizations_url":"https://api.github.com/users/P5CHI-Web-Academy/orgs","repos_url":"https://api.github.com/users/P5CHI-Web-Academy/repos","events_url":"https://api.github.com/users/P5CHI-Web-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/P5CHI-Web-Academy/received_events","type":"Organization","site_admin":false},"repo":{"id":130452611,"name":"Homework-Symfony-Symfony","full_name":"P5CHI-Web-Academy/Homework-Symfony-Symfony","owner":{"login":"P5CHI-Web-Academy","id":37544081,"avatar_url":"https://avatars0.githubusercontent.com/u/37544081?v=4","gravatar_id":"","url":"https://api.github.com/users/P5CHI-Web-Academy","html_url":"https://github.com/P5CHI-Web-Academy","followers_url":"https://api.github.com/users/P5CHI-Web-Academy/followers","following_url":"https://api.github.com/users/P5CHI-Web-Academy/following{/other_user}","gists_url":"https://api.github.com/users/P5CHI-Web-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/P5CHI-Web-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/P5CHI-Web-Academy/subscriptions","organizations_url":"https://api.github.com/users/P5CHI-Web-Academy/orgs","repos_url":"https://api.github.com/users/P5CHI-Web-Academy/repos","events_url":"https://api.github.com/users/P5CHI-Web-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/P5CHI-Web-Academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony","description":null,"fork":false,"url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony","forks_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/forks","keys_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/teams","hooks_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/hooks","issue_events_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/issues/events{/number}","events_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/events","assignees_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/assignees{/user}","branches_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/branches{/branch}","tags_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/tags","blobs_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/languages","stargazers_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/stargazers","contributors_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/contributors","subscribers_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/subscribers","subscription_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/subscription","commits_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/contents/{+path}","compare_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/merges","archive_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/downloads","issues_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/issues{/number}","pulls_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/labels{/name}","releases_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/releases{/id}","deployments_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/deployments","created_at":"2018-04-21T07:55:31Z","updated_at":"2018-04-21T07:55:33Z","pushed_at":"2018-04-29T23:24:50Z","git_url":"git://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony.git","ssh_url":"git@github.com:P5CHI-Web-Academy/Homework-Symfony-Symfony.git","clone_url":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony.git","svn_url":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony","homepage":null,"size":10341,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":9,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/23"},"html":{"href":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony/pull/23"},"issue":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/issues/23"},"comments":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/statuses/8a122a315a6bee616f379a76b034896083773c3f"}},"author_association":"NONE"}}
{"actor":{"display_login":"gregurco"}}