{"action":"closed","issue":{"url":"https://api.github.com/repos/spider/spider/issues/65","labels_url":"https://api.github.com/repos/spider/spider/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/spider/spider/issues/65/comments","events_url":"https://api.github.com/repos/spider/spider/issues/65/events","html_url":"https://github.com/spider/spider/issues/65","id":102505319,"number":65,"title":"one() and first()","user":{"login":"smolinari","id":3314957,"avatar_url":"https://avatars.githubusercontent.com/u/3314957?v=3","gravatar_id":"","url":"https://api.github.com/users/smolinari","html_url":"https://github.com/smolinari","followers_url":"https://api.github.com/users/smolinari/followers","following_url":"https://api.github.com/users/smolinari/following{/other_user}","gists_url":"https://api.github.com/users/smolinari/gists{/gist_id}","starred_url":"https://api.github.com/users/smolinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smolinari/subscriptions","organizations_url":"https://api.github.com/users/smolinari/orgs","repos_url":"https://api.github.com/users/smolinari/repos","events_url":"https://api.github.com/users/smolinari/events{/privacy}","received_events_url":"https://api.github.com/users/smolinari/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spider/spider/milestones/2","html_url":"https://github.com/spider/spider/milestones/v0.4%20-%20Full%20Command%20Builder","labels_url":"https://api.github.com/repos/spider/spider/milestones/2/labels","id":1219151,"number":2,"title":"v0.4 - Full Command Builder","description":"The Full Command Builder extends the Basic Command Builder by adding declarative traversals, nested queries, and a solution for the n+1 problem (building a query that fetches a post with all its comments in one query).\r\n\r\nThe Full Command Builder also introduces that the user can specify how they want the result formatted (e.g. `tree`, `flat`, etc).\r\n\r\nLay foundation for Models/Graphs\r\n\r\nTop-level Spider\\Spider Api","creator":{"login":"chrismichaels84","id":5412413,"avatar_url":"https://avatars.githubusercontent.com/u/5412413?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismichaels84","html_url":"https://github.com/chrismichaels84","followers_url":"https://api.github.com/users/chrismichaels84/followers","following_url":"https://api.github.com/users/chrismichaels84/following{/other_user}","gists_url":"https://api.github.com/users/chrismichaels84/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismichaels84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismichaels84/subscriptions","organizations_url":"https://api.github.com/users/chrismichaels84/orgs","repos_url":"https://api.github.com/users/chrismichaels84/repos","events_url":"https://api.github.com/users/chrismichaels84/events{/privacy}","received_events_url":"https://api.github.com/users/chrismichaels84/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":2,"state":"open","created_at":"2015-07-21T21:32:06Z","updated_at":"2015-08-31T20:33:54Z","due_on":null,"closed_at":null},"comments":18,"created_at":"2015-08-22T05:34:31Z","updated_at":"2015-08-31T20:33:55Z","closed_at":"2015-08-31T20:33:54Z","body":"This is getting nitpicky. I know. I was reading the docs to learn some more about Spider and something hit me about `one()` and `first()`. Actually, when I first saw `first()`, it seemed strange to me. It seemed like it should be a verb, like `getFirst()`. \r\n\r\n```\r\n$person = $query\r\n   ->select()\r\n   ->from('person')\r\n   ->where('name', 'vadas')\r\n   ->getFirst();\r\n```\r\nOr maybe this could work?\r\n```\r\n$person = $query\r\n   ->select()\r\n   ->one()\r\n   ->from('person')\r\n   ->where('name', 'vadas');\r\n```\r\nScott"}}