{"action":"created","issue":{"url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/issues/91","repository_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery","labels_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/issues/91/comments","events_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/issues/91/events","html_url":"https://github.com/auraphp/Aura.SqlQuery/pull/91","id":153572285,"number":91,"title":"reset methods","user":{"login":"yespire","id":1065882,"avatar_url":"https://avatars.githubusercontent.com/u/1065882?v=3","gravatar_id":"","url":"https://api.github.com/users/yespire","html_url":"https://github.com/yespire","followers_url":"https://api.github.com/users/yespire/followers","following_url":"https://api.github.com/users/yespire/following{/other_user}","gists_url":"https://api.github.com/users/yespire/gists{/gist_id}","starred_url":"https://api.github.com/users/yespire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yespire/subscriptions","organizations_url":"https://api.github.com/users/yespire/orgs","repos_url":"https://api.github.com/users/yespire/repos","events_url":"https://api.github.com/users/yespire/events{/privacy}","received_events_url":"https://api.github.com/users/yespire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-07T04:12:10Z","updated_at":"2016-05-07T07:00:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/pulls/91","html_url":"https://github.com/auraphp/Aura.SqlQuery/pull/91","diff_url":"https://github.com/auraphp/Aura.SqlQuery/pull/91.diff","patch_url":"https://github.com/auraphp/Aura.SqlQuery/pull/91.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/issues/comments/217612324","html_url":"https://github.com/auraphp/Aura.SqlQuery/pull/91#issuecomment-217612324","issue_url":"https://api.github.com/repos/auraphp/Aura.SqlQuery/issues/91","id":217612324,"user":{"login":"yespire","id":1065882,"avatar_url":"https://avatars.githubusercontent.com/u/1065882?v=3","gravatar_id":"","url":"https://api.github.com/users/yespire","html_url":"https://github.com/yespire","followers_url":"https://api.github.com/users/yespire/followers","following_url":"https://api.github.com/users/yespire/following{/other_user}","gists_url":"https://api.github.com/users/yespire/gists{/gist_id}","starred_url":"https://api.github.com/users/yespire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yespire/subscriptions","organizations_url":"https://api.github.com/users/yespire/orgs","repos_url":"https://api.github.com/users/yespire/repos","events_url":"https://api.github.com/users/yespire/events{/privacy}","received_events_url":"https://api.github.com/users/yespire/received_events","type":"User","site_admin":false},"created_at":"2016-05-07T07:00:27Z","updated_at":"2016-05-07T07:00:27Z","body":"@staabm \r\n\r\ncould you please elaborate \"unsetting object is an anti-pattern\" ?\r\n\r\n#84 explained a use case\r\n\r\nbut here is another one:\r\n\r\nthe packages calcFoundRows() doesn't have a paired up method and property to capture \"SELECT FOUND_ROWS()\", even if it is added, some people may prefer to not use that and use SELECT COUNT(*) ----- now imagine need to get a list of records, then get the potential record count, the would be like:\r\n$query->resetCols()\r\n$query->resetOrderBy()\r\n$query->resetLimit()\r\n$query->resetOffset()\r\n$query->cols([ \"count(*)\" ])\r\n$listing_total = $query->fetchValue();"}}