{"action":"created","comment":{"url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/comments/184884927","pull_request_review_id":116168425,"id":184884927,"diff_hunk":"@@ -23,6 +25,57 @@ class Category{\n      */\n     private $name;\n \n+    /**\n+     * @var ArrayCollection\n+     * @ORM\\OneToMany(targetEntity=\"App\\Entity\\Job\", mappedBy=\"category\")\n+     */\n+    private $jobs;\n+\n+    /**\n+     * @var ArrayCollection\n+     * @ORM\\ManyToMany(targetEntity=\"App\\Entity\\Affiliate\", mappedBy=\"categories\")\n+     */\n+    private $affiliates;\n+\n+    public function __construct()\n+    {\n+        $this->affiliates = new ArrayCollection();\n+        $this->jobs = new ArrayCollection();\n+    }\n+\n+\n+    /**\n+     * @return Collection|Job[]\n+     */\n+    public function getJobs(): Collection\n+    {\n+        return $this->jobs;\n+    }\n+\n+    /**\n+     * @param Job $job\n+     * @return Category\n+     */\n+    public function addJob(Job $job): Category\n+    {\n+        if(!$this->jobs->contains($job))","path":"src/Entity/Category.php","position":46,"original_position":46,"commit_id":"3cf17bdb8d01b667673798e0d36ae3f2d83ed212","original_commit_id":"3cf17bdb8d01b667673798e0d36ae3f2d83ed212","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":"also code style","created_at":"2018-04-29T14:30:36Z","updated_at":"2018-04-29T14:30:47Z","html_url":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony/pull/19#discussion_r184884927","pull_request_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/19","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/comments/184884927"},"html":{"href":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony/pull/19#discussion_r184884927"},"pull_request":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/19","id":184767738,"html_url":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony/pull/19","diff_url":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony/pull/19.diff","patch_url":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony/pull/19.patch","issue_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/issues/19","number":19,"state":"open","locked":false,"title":"Day 3. Homerowk","user":{"login":"ksardedik","id":16742190,"avatar_url":"https://avatars0.githubusercontent.com/u/16742190?v=4","gravatar_id":"","url":"https://api.github.com/users/ksardedik","html_url":"https://github.com/ksardedik","followers_url":"https://api.github.com/users/ksardedik/followers","following_url":"https://api.github.com/users/ksardedik/following{/other_user}","gists_url":"https://api.github.com/users/ksardedik/gists{/gist_id}","starred_url":"https://api.github.com/users/ksardedik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksardedik/subscriptions","organizations_url":"https://api.github.com/users/ksardedik/orgs","repos_url":"https://api.github.com/users/ksardedik/repos","events_url":"https://api.github.com/users/ksardedik/events{/privacy}","received_events_url":"https://api.github.com/users/ksardedik/received_events","type":"User","site_admin":false},"body":"- Entities' relations (+ \"add\", \"remove\", \"get\" methods)\r\n- Lifecycle callbacks\r\n- Migrations\r\n- Fixtures (+ dependencies)\r\n- Faker","created_at":"2018-04-28T06:37:26Z","updated_at":"2018-04-29T14:30:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29fa24efffb0d531a73074db7b0024f7a125a4f2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/19/commits","review_comments_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/19/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/19/comments","statuses_url":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/statuses/3cf17bdb8d01b667673798e0d36ae3f2d83ed212","head":{"label":"ksardedik:master","ref":"master","sha":"3cf17bdb8d01b667673798e0d36ae3f2d83ed212","user":{"login":"ksardedik","id":16742190,"avatar_url":"https://avatars0.githubusercontent.com/u/16742190?v=4","gravatar_id":"","url":"https://api.github.com/users/ksardedik","html_url":"https://github.com/ksardedik","followers_url":"https://api.github.com/users/ksardedik/followers","following_url":"https://api.github.com/users/ksardedik/following{/other_user}","gists_url":"https://api.github.com/users/ksardedik/gists{/gist_id}","starred_url":"https://api.github.com/users/ksardedik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksardedik/subscriptions","organizations_url":"https://api.github.com/users/ksardedik/orgs","repos_url":"https://api.github.com/users/ksardedik/repos","events_url":"https://api.github.com/users/ksardedik/events{/privacy}","received_events_url":"https://api.github.com/users/ksardedik/received_events","type":"User","site_admin":false},"repo":{"id":130486068,"name":"Homework-Symfony-Symfony","full_name":"ksardedik/Homework-Symfony-Symfony","owner":{"login":"ksardedik","id":16742190,"avatar_url":"https://avatars0.githubusercontent.com/u/16742190?v=4","gravatar_id":"","url":"https://api.github.com/users/ksardedik","html_url":"https://github.com/ksardedik","followers_url":"https://api.github.com/users/ksardedik/followers","following_url":"https://api.github.com/users/ksardedik/following{/other_user}","gists_url":"https://api.github.com/users/ksardedik/gists{/gist_id}","starred_url":"https://api.github.com/users/ksardedik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksardedik/subscriptions","organizations_url":"https://api.github.com/users/ksardedik/orgs","repos_url":"https://api.github.com/users/ksardedik/repos","events_url":"https://api.github.com/users/ksardedik/events{/privacy}","received_events_url":"https://api.github.com/users/ksardedik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ksardedik/Homework-Symfony-Symfony","description":null,"fork":true,"url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony","forks_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/forks","keys_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/teams","hooks_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/hooks","issue_events_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/issues/events{/number}","events_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/events","assignees_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/assignees{/user}","branches_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/branches{/branch}","tags_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/tags","blobs_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/languages","stargazers_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/stargazers","contributors_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/contributors","subscribers_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/subscribers","subscription_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/subscription","commits_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/contents/{+path}","compare_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/merges","archive_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/downloads","issues_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/issues{/number}","pulls_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/labels{/name}","releases_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/releases{/id}","deployments_url":"https://api.github.com/repos/ksardedik/Homework-Symfony-Symfony/deployments","created_at":"2018-04-21T15:20:45Z","updated_at":"2018-04-29T13:31:14Z","pushed_at":"2018-04-29T13:31:13Z","git_url":"git://github.com/ksardedik/Homework-Symfony-Symfony.git","ssh_url":"git@github.com:ksardedik/Homework-Symfony-Symfony.git","clone_url":"https://github.com/ksardedik/Homework-Symfony-Symfony.git","svn_url":"https://github.com/ksardedik/Homework-Symfony-Symfony","homepage":null,"size":79,"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:eclimov","ref":"eclimov","sha":"bbe9e56de085cab8cf7ce4f36c4ac47211dc3b99","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-29T13:31:13Z","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":10302,"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":8,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":8,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/19"},"html":{"href":"https://github.com/P5CHI-Web-Academy/Homework-Symfony-Symfony/pull/19"},"issue":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/issues/19"},"comments":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/pulls/19/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/19/commits"},"statuses":{"href":"https://api.github.com/repos/P5CHI-Web-Academy/Homework-Symfony-Symfony/statuses/3cf17bdb8d01b667673798e0d36ae3f2d83ed212"}},"author_association":"NONE"}}
{"actor":{"display_login":"gregurco"}}