{"action":"created","issue":{"url":"https://api.github.com/repos/top-think/framework/issues/249","repository_url":"https://api.github.com/repos/top-think/framework","labels_url":"https://api.github.com/repos/top-think/framework/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/top-think/framework/issues/249/comments","events_url":"https://api.github.com/repos/top-think/framework/issues/249/events","html_url":"https://github.com/top-think/framework/issues/249","id":170661523,"number":249,"title":"在同时使用where和whereOr时连接应该是and吧.现在是or好像有问题.","user":{"login":"momoca","id":11501193,"avatar_url":"https://avatars.githubusercontent.com/u/11501193?v=3","gravatar_id":"","url":"https://api.github.com/users/momoca","html_url":"https://github.com/momoca","followers_url":"https://api.github.com/users/momoca/followers","following_url":"https://api.github.com/users/momoca/following{/other_user}","gists_url":"https://api.github.com/users/momoca/gists{/gist_id}","starred_url":"https://api.github.com/users/momoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/momoca/subscriptions","organizations_url":"https://api.github.com/users/momoca/orgs","repos_url":"https://api.github.com/users/momoca/repos","events_url":"https://api.github.com/users/momoca/events{/privacy}","received_events_url":"https://api.github.com/users/momoca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-11T14:36:57Z","updated_at":"2016-08-11T14:42:19Z","closed_at":null,"body":"```php\r\n        model('user')->where('gid',10)->whereOr('level',10)->whereOr('name','like','thinkphp%')->select()\r\n        //SELECT * FROM `pre_user` WHERE `gid` = 10 OR `level` = 10 OR `name` LIKE 'thinkphp%'\r\n        //可我想要这样的效果:\r\n        //SELECT * FROM `pre_user` WHERE `gid` = 10 and (`level` = 10 OR `name` LIKE 'thinkphp%')\r\n        //应该怎么做?\r\n```\r\n如果where和whereOr时连接应该是and吧?"},"comment":{"url":"https://api.github.com/repos/top-think/framework/issues/comments/239181812","html_url":"https://github.com/top-think/framework/issues/249#issuecomment-239181812","issue_url":"https://api.github.com/repos/top-think/framework/issues/249","id":239181812,"user":{"login":"momoca","id":11501193,"avatar_url":"https://avatars.githubusercontent.com/u/11501193?v=3","gravatar_id":"","url":"https://api.github.com/users/momoca","html_url":"https://github.com/momoca","followers_url":"https://api.github.com/users/momoca/followers","following_url":"https://api.github.com/users/momoca/following{/other_user}","gists_url":"https://api.github.com/users/momoca/gists{/gist_id}","starred_url":"https://api.github.com/users/momoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/momoca/subscriptions","organizations_url":"https://api.github.com/users/momoca/orgs","repos_url":"https://api.github.com/users/momoca/repos","events_url":"https://api.github.com/users/momoca/events{/privacy}","received_events_url":"https://api.github.com/users/momoca/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T14:42:19Z","updated_at":"2016-08-11T14:42:19Z","body":"http://www.kancloud.cn/manual/thinkphp5/135181\r\n例子中我是看到多字段or.又看了遍原码.我想我理解了."}}
{"actor":{"display_login":"momoca"}}