{"action":"opened","issue":{"url":"https://api.github.com/repos/propelorm/Propel2/issues/866","labels_url":"https://api.github.com/repos/propelorm/Propel2/issues/866/labels{/name}","comments_url":"https://api.github.com/repos/propelorm/Propel2/issues/866/comments","events_url":"https://api.github.com/repos/propelorm/Propel2/issues/866/events","html_url":"https://github.com/propelorm/Propel2/issues/866","id":54890261,"number":866,"title":"update() requires filtering by the desired column to be updated","user":{"login":"guitarman0831","id":5464896,"avatar_url":"https://avatars.githubusercontent.com/u/5464896?v=3","gravatar_id":"","url":"https://api.github.com/users/guitarman0831","html_url":"https://github.com/guitarman0831","followers_url":"https://api.github.com/users/guitarman0831/followers","following_url":"https://api.github.com/users/guitarman0831/following{/other_user}","gists_url":"https://api.github.com/users/guitarman0831/gists{/gist_id}","starred_url":"https://api.github.com/users/guitarman0831/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guitarman0831/subscriptions","organizations_url":"https://api.github.com/users/guitarman0831/orgs","repos_url":"https://api.github.com/users/guitarman0831/repos","events_url":"https://api.github.com/users/guitarman0831/events{/privacy}","received_events_url":"https://api.github.com/users/guitarman0831/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-20T14:39:17Z","updated_at":"2015-01-20T14:39:17Z","closed_at":null,"body":"When calling the `update()` function, it requires you to filter by the column being updated.\r\n\r\ni.e. if I run the query `SampleQuery::create()->filterById($id)->update(array(\"Information\" => \"New information\"));`, it returns 1, indicating a row was updated. However, checking the database information, nothing was actually updated. The Information column still contains \"Old information\" (the previous value).\r\n\r\nIn order to make the above query work, it would have to be ran as `SampleQuery::create()->filterByInformation(\"Old information\")->update(array(\"Information\" => \"New information\"))`, which doesn't make sense."}}