{"action":"opened","number":37,"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/37","id":40496605,"html_url":"https://github.com/yiisoft/yii2-mongodb/pull/37","diff_url":"https://github.com/yiisoft/yii2-mongodb/pull/37.diff","patch_url":"https://github.com/yiisoft/yii2-mongodb/pull/37.patch","issue_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/37","number":37,"state":"open","locked":false,"title":"update buildInCondition for array of one element","user":{"login":"webdevsega","id":1552376,"avatar_url":"https://avatars.githubusercontent.com/u/1552376?v=3","gravatar_id":"","url":"https://api.github.com/users/webdevsega","html_url":"https://github.com/webdevsega","followers_url":"https://api.github.com/users/webdevsega/followers","following_url":"https://api.github.com/users/webdevsega/following{/other_user}","gists_url":"https://api.github.com/users/webdevsega/gists{/gist_id}","starred_url":"https://api.github.com/users/webdevsega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdevsega/subscriptions","organizations_url":"https://api.github.com/users/webdevsega/orgs","repos_url":"https://api.github.com/users/webdevsega/repos","events_url":"https://api.github.com/users/webdevsega/events{/privacy}","received_events_url":"https://api.github.com/users/webdevsega/received_events","type":"User","site_admin":false},"body":"If array of values for the condition contains only one element, do not add the operator $in. Now when I use the relation 'hasOne' is always added $in with one value in the query.\r\nThis will improve the query performance.\r\n","created_at":"2015-07-21T19:45:56Z","updated_at":"2015-07-21T19:45:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e40b5a1d679e37117e65893ba021a44aff2e62cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/37/commits","review_comments_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/37/comments","review_comment_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/37/comments","statuses_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/statuses/6e2a4f00fbe7be60029c3f7303d124cbaca85a1d","head":{"label":"webdevsega:query_performance","ref":"query_performance","sha":"6e2a4f00fbe7be60029c3f7303d124cbaca85a1d","user":{"login":"webdevsega","id":1552376,"avatar_url":"https://avatars.githubusercontent.com/u/1552376?v=3","gravatar_id":"","url":"https://api.github.com/users/webdevsega","html_url":"https://github.com/webdevsega","followers_url":"https://api.github.com/users/webdevsega/followers","following_url":"https://api.github.com/users/webdevsega/following{/other_user}","gists_url":"https://api.github.com/users/webdevsega/gists{/gist_id}","starred_url":"https://api.github.com/users/webdevsega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdevsega/subscriptions","organizations_url":"https://api.github.com/users/webdevsega/orgs","repos_url":"https://api.github.com/users/webdevsega/repos","events_url":"https://api.github.com/users/webdevsega/events{/privacy}","received_events_url":"https://api.github.com/users/webdevsega/received_events","type":"User","site_admin":false},"repo":{"id":39464598,"name":"yii2-mongodb","full_name":"webdevsega/yii2-mongodb","owner":{"login":"webdevsega","id":1552376,"avatar_url":"https://avatars.githubusercontent.com/u/1552376?v=3","gravatar_id":"","url":"https://api.github.com/users/webdevsega","html_url":"https://github.com/webdevsega","followers_url":"https://api.github.com/users/webdevsega/followers","following_url":"https://api.github.com/users/webdevsega/following{/other_user}","gists_url":"https://api.github.com/users/webdevsega/gists{/gist_id}","starred_url":"https://api.github.com/users/webdevsega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdevsega/subscriptions","organizations_url":"https://api.github.com/users/webdevsega/orgs","repos_url":"https://api.github.com/users/webdevsega/repos","events_url":"https://api.github.com/users/webdevsega/events{/privacy}","received_events_url":"https://api.github.com/users/webdevsega/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/webdevsega/yii2-mongodb","description":"Yii 2 MongoDB extension.","fork":true,"url":"https://api.github.com/repos/webdevsega/yii2-mongodb","forks_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/forks","keys_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/teams","hooks_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/hooks","issue_events_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/events","assignees_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/tags","blobs_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/languages","stargazers_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/stargazers","contributors_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/contributors","subscribers_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/subscribers","subscription_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/subscription","commits_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/merges","archive_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/downloads","issues_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/releases{/id}","created_at":"2015-07-21T19:08:32Z","updated_at":"2015-07-21T19:08:34Z","pushed_at":"2015-07-21T19:34:07Z","git_url":"git://github.com/webdevsega/yii2-mongodb.git","ssh_url":"git@github.com:webdevsega/yii2-mongodb.git","clone_url":"https://github.com/webdevsega/yii2-mongodb.git","svn_url":"https://github.com/webdevsega/yii2-mongodb","homepage":"http://www.yiiframework.com","size":10835,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"yiisoft:master","ref":"master","sha":"9dd545c242d9c2e15ec4b1b744905d919f705eff","user":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"repo":{"id":14986960,"name":"yii2-mongodb","full_name":"yiisoft/yii2-mongodb","owner":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yiisoft/yii2-mongodb","description":"Yii 2 MongoDB extension.","fork":false,"url":"https://api.github.com/repos/yiisoft/yii2-mongodb","forks_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/forks","keys_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/teams","hooks_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/hooks","issue_events_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/events","assignees_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/tags","blobs_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/languages","stargazers_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/stargazers","contributors_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/contributors","subscribers_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/subscribers","subscription_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/subscription","commits_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/merges","archive_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/downloads","issues_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/releases{/id}","created_at":"2013-12-06T16:00:15Z","updated_at":"2015-07-21T11:48:24Z","pushed_at":"2015-07-21T19:45:56Z","git_url":"git://github.com/yiisoft/yii2-mongodb.git","ssh_url":"git@github.com:yiisoft/yii2-mongodb.git","clone_url":"https://github.com/yiisoft/yii2-mongodb.git","svn_url":"https://github.com/yiisoft/yii2-mongodb","homepage":"http://www.yiiframework.com","size":10835,"stargazers_count":62,"watchers_count":62,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":8,"forks":40,"open_issues":8,"watchers":62,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/37"},"html":{"href":"https://github.com/yiisoft/yii2-mongodb/pull/37"},"issue":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/37"},"comments":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/statuses/6e2a4f00fbe7be60029c3f7303d124cbaca85a1d"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":1,"changed_files":1}}