{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/12729","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/12729/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/12729/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/12729/events","html_url":"https://github.com/yiisoft/yii2/issues/12729","id":182602037,"number":12729,"title":"how to make a update query with a limit","user":{"login":"mariuszkrzaczkowski","id":10198654,"avatar_url":"https://avatars.githubusercontent.com/u/10198654?v=3","gravatar_id":"","url":"https://api.github.com/users/mariuszkrzaczkowski","html_url":"https://github.com/mariuszkrzaczkowski","followers_url":"https://api.github.com/users/mariuszkrzaczkowski/followers","following_url":"https://api.github.com/users/mariuszkrzaczkowski/following{/other_user}","gists_url":"https://api.github.com/users/mariuszkrzaczkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/mariuszkrzaczkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariuszkrzaczkowski/subscriptions","organizations_url":"https://api.github.com/users/mariuszkrzaczkowski/orgs","repos_url":"https://api.github.com/users/mariuszkrzaczkowski/repos","events_url":"https://api.github.com/users/mariuszkrzaczkowski/events{/privacy}","received_events_url":"https://api.github.com/users/mariuszkrzaczkowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-12T18:42:28Z","updated_at":"2016-10-12T20:23:53Z","closed_at":null,"body":"Query:\r\n```\r\nYii::app()->db->createCommand()\r\n\t\t\t->update('test', ['test' => 2], ['name' => 'test'])\r\n\t\t\t->execute();\r\n```\r\nI need to add a limit to how to do it?\r\neg.\r\n```\r\n\t\tYii::app()->db->createCommand()\r\n\t\t\t->update('test', ['test' => 2], ['name' => 'test'])\r\n\t\t\t->limit(1)\r\n\t\t\t->execute();\r\n```\r\n\r\n| Q                | A\r\n| ---------------- | ---\r\n| Yii version      | 2.0.9\r\n| PHP version      | 7.0\r\n| Operating system | Linux\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/253328266","html_url":"https://github.com/yiisoft/yii2/issues/12729#issuecomment-253328266","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/12729","id":253328266,"user":{"login":"dynasource","id":125726,"avatar_url":"https://avatars.githubusercontent.com/u/125726?v=3","gravatar_id":"","url":"https://api.github.com/users/dynasource","html_url":"https://github.com/dynasource","followers_url":"https://api.github.com/users/dynasource/followers","following_url":"https://api.github.com/users/dynasource/following{/other_user}","gists_url":"https://api.github.com/users/dynasource/gists{/gist_id}","starred_url":"https://api.github.com/users/dynasource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dynasource/subscriptions","organizations_url":"https://api.github.com/users/dynasource/orgs","repos_url":"https://api.github.com/users/dynasource/repos","events_url":"https://api.github.com/users/dynasource/events{/privacy}","received_events_url":"https://api.github.com/users/dynasource/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T20:23:53Z","updated_at":"2016-10-12T20:23:53Z","body":"thats odd. What is your usecase to have ony 1 single entry updated?  "}}
{"actor":{"display_login":"dynasource"}}