{"action":"created","comment":{"url":"https://api.github.com/repos/notamedia/yii2-relation/pulls/comments/92324781","pull_request_review_id":12837471,"id":92324781,"diff_hunk":"@@ -79,13 +86,53 @@ public function getNewsFiles()\n     }\n \n     /**\n+     * @return \\yii\\db\\ActiveQuery\n+     */\n+    public function getNewsFilesWithCond()\n+    {\n+        return $this\n+            ->hasMany(FakeNewsFilesModel::className(), ['news_id' => 'id'])\n+            ->onCondition(['entity_type' => 'with_condition']);\n+    }\n+\n+    /**\n      * @return $this","path":"tests/unit/FakeNewsModel.php","position":null,"original_position":55,"commit_id":"48174ba81bc64a3877875e03261aeca70814761b","original_commit_id":"836d4021a5b00a300d3976b8f227528ecde4308a","user":{"login":"nixmen","id":7568437,"avatar_url":"https://avatars.githubusercontent.com/u/7568437?v=3","gravatar_id":"","url":"https://api.github.com/users/nixmen","html_url":"https://github.com/nixmen","followers_url":"https://api.github.com/users/nixmen/followers","following_url":"https://api.github.com/users/nixmen/following{/other_user}","gists_url":"https://api.github.com/users/nixmen/gists{/gist_id}","starred_url":"https://api.github.com/users/nixmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nixmen/subscriptions","organizations_url":"https://api.github.com/users/nixmen/orgs","repos_url":"https://api.github.com/users/nixmen/repos","events_url":"https://api.github.com/users/nixmen/events{/privacy}","received_events_url":"https://api.github.com/users/nixmen/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2016-12-14T05:29:42Z","updated_at":"2016-12-14T05:29:43Z","html_url":"https://github.com/notamedia/yii2-relation/pull/13#discussion_r92324781","pull_request_url":"https://api.github.com/repos/notamedia/yii2-relation/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/notamedia/yii2-relation/pulls/comments/92324781"},"html":{"href":"https://github.com/notamedia/yii2-relation/pull/13#discussion_r92324781"},"pull_request":{"href":"https://api.github.com/repos/notamedia/yii2-relation/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/notamedia/yii2-relation/pulls/13","id":90193337,"html_url":"https://github.com/notamedia/yii2-relation/pull/13","diff_url":"https://github.com/notamedia/yii2-relation/pull/13.diff","patch_url":"https://github.com/notamedia/yii2-relation/pull/13.patch","issue_url":"https://api.github.com/repos/notamedia/yii2-relation/issues/13","number":13,"state":"open","locked":false,"title":"Adding support viatable with tests","user":{"login":"nixmen","id":7568437,"avatar_url":"https://avatars.githubusercontent.com/u/7568437?v=3","gravatar_id":"","url":"https://api.github.com/users/nixmen","html_url":"https://github.com/nixmen","followers_url":"https://api.github.com/users/nixmen/followers","following_url":"https://api.github.com/users/nixmen/following{/other_user}","gists_url":"https://api.github.com/users/nixmen/gists{/gist_id}","starred_url":"https://api.github.com/users/nixmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nixmen/subscriptions","organizations_url":"https://api.github.com/users/nixmen/orgs","repos_url":"https://api.github.com/users/nixmen/repos","events_url":"https://api.github.com/users/nixmen/events{/privacy}","received_events_url":"https://api.github.com/users/nixmen/received_events","type":"User","site_admin":false},"body":"- fixed unit-tests\n- adding supporting relations with viaTable\n- fix php version for Travis CI\n","created_at":"2016-10-20T12:47:17Z","updated_at":"2016-12-14T05:29:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a231af6439d222d3a18b2598f96b0f6ee6c6bc77","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/notamedia/yii2-relation/pulls/13/commits","review_comments_url":"https://api.github.com/repos/notamedia/yii2-relation/pulls/13/comments","review_comment_url":"https://api.github.com/repos/notamedia/yii2-relation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/notamedia/yii2-relation/issues/13/comments","statuses_url":"https://api.github.com/repos/notamedia/yii2-relation/statuses/48174ba81bc64a3877875e03261aeca70814761b","head":{"label":"nixmen:adding_support_viatable_w_tests","ref":"adding_support_viatable_w_tests","sha":"48174ba81bc64a3877875e03261aeca70814761b","user":{"login":"nixmen","id":7568437,"avatar_url":"https://avatars.githubusercontent.com/u/7568437?v=3","gravatar_id":"","url":"https://api.github.com/users/nixmen","html_url":"https://github.com/nixmen","followers_url":"https://api.github.com/users/nixmen/followers","following_url":"https://api.github.com/users/nixmen/following{/other_user}","gists_url":"https://api.github.com/users/nixmen/gists{/gist_id}","starred_url":"https://api.github.com/users/nixmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nixmen/subscriptions","organizations_url":"https://api.github.com/users/nixmen/orgs","repos_url":"https://api.github.com/users/nixmen/repos","events_url":"https://api.github.com/users/nixmen/events{/privacy}","received_events_url":"https://api.github.com/users/nixmen/received_events","type":"User","site_admin":false},"repo":{"id":61352554,"name":"yii2-relation","full_name":"nixmen/yii2-relation","owner":{"login":"nixmen","id":7568437,"avatar_url":"https://avatars.githubusercontent.com/u/7568437?v=3","gravatar_id":"","url":"https://api.github.com/users/nixmen","html_url":"https://github.com/nixmen","followers_url":"https://api.github.com/users/nixmen/followers","following_url":"https://api.github.com/users/nixmen/following{/other_user}","gists_url":"https://api.github.com/users/nixmen/gists{/gist_id}","starred_url":"https://api.github.com/users/nixmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nixmen/subscriptions","organizations_url":"https://api.github.com/users/nixmen/orgs","repos_url":"https://api.github.com/users/nixmen/repos","events_url":"https://api.github.com/users/nixmen/events{/privacy}","received_events_url":"https://api.github.com/users/nixmen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nixmen/yii2-relation","description":"Behavior for support relational data management","fork":true,"url":"https://api.github.com/repos/nixmen/yii2-relation","forks_url":"https://api.github.com/repos/nixmen/yii2-relation/forks","keys_url":"https://api.github.com/repos/nixmen/yii2-relation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nixmen/yii2-relation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nixmen/yii2-relation/teams","hooks_url":"https://api.github.com/repos/nixmen/yii2-relation/hooks","issue_events_url":"https://api.github.com/repos/nixmen/yii2-relation/issues/events{/number}","events_url":"https://api.github.com/repos/nixmen/yii2-relation/events","assignees_url":"https://api.github.com/repos/nixmen/yii2-relation/assignees{/user}","branches_url":"https://api.github.com/repos/nixmen/yii2-relation/branches{/branch}","tags_url":"https://api.github.com/repos/nixmen/yii2-relation/tags","blobs_url":"https://api.github.com/repos/nixmen/yii2-relation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nixmen/yii2-relation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nixmen/yii2-relation/git/refs{/sha}","trees_url":"https://api.github.com/repos/nixmen/yii2-relation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nixmen/yii2-relation/statuses/{sha}","languages_url":"https://api.github.com/repos/nixmen/yii2-relation/languages","stargazers_url":"https://api.github.com/repos/nixmen/yii2-relation/stargazers","contributors_url":"https://api.github.com/repos/nixmen/yii2-relation/contributors","subscribers_url":"https://api.github.com/repos/nixmen/yii2-relation/subscribers","subscription_url":"https://api.github.com/repos/nixmen/yii2-relation/subscription","commits_url":"https://api.github.com/repos/nixmen/yii2-relation/commits{/sha}","git_commits_url":"https://api.github.com/repos/nixmen/yii2-relation/git/commits{/sha}","comments_url":"https://api.github.com/repos/nixmen/yii2-relation/comments{/number}","issue_comment_url":"https://api.github.com/repos/nixmen/yii2-relation/issues/comments{/number}","contents_url":"https://api.github.com/repos/nixmen/yii2-relation/contents/{+path}","compare_url":"https://api.github.com/repos/nixmen/yii2-relation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nixmen/yii2-relation/merges","archive_url":"https://api.github.com/repos/nixmen/yii2-relation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nixmen/yii2-relation/downloads","issues_url":"https://api.github.com/repos/nixmen/yii2-relation/issues{/number}","pulls_url":"https://api.github.com/repos/nixmen/yii2-relation/pulls{/number}","milestones_url":"https://api.github.com/repos/nixmen/yii2-relation/milestones{/number}","notifications_url":"https://api.github.com/repos/nixmen/yii2-relation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nixmen/yii2-relation/labels{/name}","releases_url":"https://api.github.com/repos/nixmen/yii2-relation/releases{/id}","deployments_url":"https://api.github.com/repos/nixmen/yii2-relation/deployments","created_at":"2016-06-17T06:57:23Z","updated_at":"2016-06-17T06:57:24Z","pushed_at":"2016-12-14T05:29:22Z","git_url":"git://github.com/nixmen/yii2-relation.git","ssh_url":"git@github.com:nixmen/yii2-relation.git","clone_url":"https://github.com/nixmen/yii2-relation.git","svn_url":"https://github.com/nixmen/yii2-relation","homepage":null,"size":68,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"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":"notamedia:master","ref":"master","sha":"222d67294391792abaa2a167cef5501389680e78","user":{"login":"notamedia","id":13890465,"avatar_url":"https://avatars.githubusercontent.com/u/13890465?v=3","gravatar_id":"","url":"https://api.github.com/users/notamedia","html_url":"https://github.com/notamedia","followers_url":"https://api.github.com/users/notamedia/followers","following_url":"https://api.github.com/users/notamedia/following{/other_user}","gists_url":"https://api.github.com/users/notamedia/gists{/gist_id}","starred_url":"https://api.github.com/users/notamedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notamedia/subscriptions","organizations_url":"https://api.github.com/users/notamedia/orgs","repos_url":"https://api.github.com/users/notamedia/repos","events_url":"https://api.github.com/users/notamedia/events{/privacy}","received_events_url":"https://api.github.com/users/notamedia/received_events","type":"Organization","site_admin":false},"repo":{"id":48811681,"name":"yii2-relation","full_name":"notamedia/yii2-relation","owner":{"login":"notamedia","id":13890465,"avatar_url":"https://avatars.githubusercontent.com/u/13890465?v=3","gravatar_id":"","url":"https://api.github.com/users/notamedia","html_url":"https://github.com/notamedia","followers_url":"https://api.github.com/users/notamedia/followers","following_url":"https://api.github.com/users/notamedia/following{/other_user}","gists_url":"https://api.github.com/users/notamedia/gists{/gist_id}","starred_url":"https://api.github.com/users/notamedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notamedia/subscriptions","organizations_url":"https://api.github.com/users/notamedia/orgs","repos_url":"https://api.github.com/users/notamedia/repos","events_url":"https://api.github.com/users/notamedia/events{/privacy}","received_events_url":"https://api.github.com/users/notamedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/notamedia/yii2-relation","description":"Behavior for support relational data management","fork":false,"url":"https://api.github.com/repos/notamedia/yii2-relation","forks_url":"https://api.github.com/repos/notamedia/yii2-relation/forks","keys_url":"https://api.github.com/repos/notamedia/yii2-relation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/notamedia/yii2-relation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/notamedia/yii2-relation/teams","hooks_url":"https://api.github.com/repos/notamedia/yii2-relation/hooks","issue_events_url":"https://api.github.com/repos/notamedia/yii2-relation/issues/events{/number}","events_url":"https://api.github.com/repos/notamedia/yii2-relation/events","assignees_url":"https://api.github.com/repos/notamedia/yii2-relation/assignees{/user}","branches_url":"https://api.github.com/repos/notamedia/yii2-relation/branches{/branch}","tags_url":"https://api.github.com/repos/notamedia/yii2-relation/tags","blobs_url":"https://api.github.com/repos/notamedia/yii2-relation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/notamedia/yii2-relation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/notamedia/yii2-relation/git/refs{/sha}","trees_url":"https://api.github.com/repos/notamedia/yii2-relation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/notamedia/yii2-relation/statuses/{sha}","languages_url":"https://api.github.com/repos/notamedia/yii2-relation/languages","stargazers_url":"https://api.github.com/repos/notamedia/yii2-relation/stargazers","contributors_url":"https://api.github.com/repos/notamedia/yii2-relation/contributors","subscribers_url":"https://api.github.com/repos/notamedia/yii2-relation/subscribers","subscription_url":"https://api.github.com/repos/notamedia/yii2-relation/subscription","commits_url":"https://api.github.com/repos/notamedia/yii2-relation/commits{/sha}","git_commits_url":"https://api.github.com/repos/notamedia/yii2-relation/git/commits{/sha}","comments_url":"https://api.github.com/repos/notamedia/yii2-relation/comments{/number}","issue_comment_url":"https://api.github.com/repos/notamedia/yii2-relation/issues/comments{/number}","contents_url":"https://api.github.com/repos/notamedia/yii2-relation/contents/{+path}","compare_url":"https://api.github.com/repos/notamedia/yii2-relation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/notamedia/yii2-relation/merges","archive_url":"https://api.github.com/repos/notamedia/yii2-relation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/notamedia/yii2-relation/downloads","issues_url":"https://api.github.com/repos/notamedia/yii2-relation/issues{/number}","pulls_url":"https://api.github.com/repos/notamedia/yii2-relation/pulls{/number}","milestones_url":"https://api.github.com/repos/notamedia/yii2-relation/milestones{/number}","notifications_url":"https://api.github.com/repos/notamedia/yii2-relation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/notamedia/yii2-relation/labels{/name}","releases_url":"https://api.github.com/repos/notamedia/yii2-relation/releases{/id}","deployments_url":"https://api.github.com/repos/notamedia/yii2-relation/deployments","created_at":"2015-12-30T17:23:59Z","updated_at":"2016-12-13T12:44:40Z","pushed_at":"2016-12-14T05:29:23Z","git_url":"git://github.com/notamedia/yii2-relation.git","ssh_url":"git@github.com:notamedia/yii2-relation.git","clone_url":"https://github.com/notamedia/yii2-relation.git","svn_url":"https://github.com/notamedia/yii2-relation","homepage":null,"size":40,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/notamedia/yii2-relation/pulls/13"},"html":{"href":"https://github.com/notamedia/yii2-relation/pull/13"},"issue":{"href":"https://api.github.com/repos/notamedia/yii2-relation/issues/13"},"comments":{"href":"https://api.github.com/repos/notamedia/yii2-relation/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/notamedia/yii2-relation/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/notamedia/yii2-relation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/notamedia/yii2-relation/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/notamedia/yii2-relation/statuses/48174ba81bc64a3877875e03261aeca70814761b"}}}}
{"actor":{"display_login":"nixmen"}}