{"action":"created","comment":{"url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/pulls/comments/27767402","id":27767402,"diff_hunk":"@@ -64,6 +64,20 @@ public function initFilters(array $filters);\n     public function getFilters();\n \n     /**\n+     * Initializes order filters.\n+     *\n+     * @param array $orders\n+     */\n+    public function initOrder(array $orders);","path":"JsonLd/ResourceInterface.php","position":8,"original_position":8,"commit_id":"7a735f7954167eae8b87c135a93d8b417a74d111","original_commit_id":"7a735f7954167eae8b87c135a93d8b417a74d111","user":{"login":"dunglas","id":57224,"avatar_url":"https://avatars.githubusercontent.com/u/57224?v=3","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"body":"Same here `$order` or `initOrders` (coherence). I've a preference for `initOrders` and `getOrders`.","created_at":"2015-04-04T07:35:26Z","updated_at":"2015-04-04T07:35:26Z","html_url":"https://github.com/dunglas/DunglasJsonLdApiBundle/pull/19#discussion_r27767402","pull_request_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/pulls/comments/27767402"},"html":{"href":"https://github.com/dunglas/DunglasJsonLdApiBundle/pull/19#discussion_r27767402"},"pull_request":{"href":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/pulls/19","id":32574203,"html_url":"https://github.com/dunglas/DunglasJsonLdApiBundle/pull/19","diff_url":"https://github.com/dunglas/DunglasJsonLdApiBundle/pull/19.diff","patch_url":"https://github.com/dunglas/DunglasJsonLdApiBundle/pull/19.patch","issue_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/issues/19","number":19,"state":"open","locked":false,"title":"Adding order filter","user":{"login":"theofidry","id":5175937,"avatar_url":"https://avatars.githubusercontent.com/u/5175937?v=3","gravatar_id":"","url":"https://api.github.com/users/theofidry","html_url":"https://github.com/theofidry","followers_url":"https://api.github.com/users/theofidry/followers","following_url":"https://api.github.com/users/theofidry/following{/other_user}","gists_url":"https://api.github.com/users/theofidry/gists{/gist_id}","starred_url":"https://api.github.com/users/theofidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theofidry/subscriptions","organizations_url":"https://api.github.com/users/theofidry/orgs","repos_url":"https://api.github.com/users/theofidry/repos","events_url":"https://api.github.com/users/theofidry/events{/privacy}","received_events_url":"https://api.github.com/users/theofidry/received_events","type":"User","site_admin":false},"body":"Hi Kévin,\r\n\r\nHere's a very rough version with the order filter.\r\n\r\nThe order filter has currently no whitelist to its own and takes the one of the where filter, which is complete nonsense but I was not sure about how you would integrate it with the `initFilter`: change it too be able to pass order filter in it or create a separate one `initOrderFilter` or something along those lines.","created_at":"2015-04-03T07:22:52Z","updated_at":"2015-04-04T07:35:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a67188dac0860c9089324a265e45894247bdc092","assignee":null,"milestone":{"url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/milestones/1","html_url":"https://github.com/dunglas/DunglasJsonLdApiBundle/milestones/0.1.0","labels_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/milestones/1/labels","id":1051450,"number":1,"title":"0.1.0","description":"","creator":{"login":"dunglas","id":57224,"avatar_url":"https://avatars.githubusercontent.com/u/57224?v=3","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2015-04-03T08:19:58Z","updated_at":"2015-04-03T18:21:12Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/pulls/19/commits","review_comments_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/pulls/19/comments","review_comment_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/issues/19/comments","statuses_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/statuses/7a735f7954167eae8b87c135a93d8b417a74d111","head":{"label":"theofidry:master","ref":"master","sha":"7a735f7954167eae8b87c135a93d8b417a74d111","user":{"login":"theofidry","id":5175937,"avatar_url":"https://avatars.githubusercontent.com/u/5175937?v=3","gravatar_id":"","url":"https://api.github.com/users/theofidry","html_url":"https://github.com/theofidry","followers_url":"https://api.github.com/users/theofidry/followers","following_url":"https://api.github.com/users/theofidry/following{/other_user}","gists_url":"https://api.github.com/users/theofidry/gists{/gist_id}","starred_url":"https://api.github.com/users/theofidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theofidry/subscriptions","organizations_url":"https://api.github.com/users/theofidry/orgs","repos_url":"https://api.github.com/users/theofidry/repos","events_url":"https://api.github.com/users/theofidry/events{/privacy}","received_events_url":"https://api.github.com/users/theofidry/received_events","type":"User","site_admin":false},"repo":{"id":33300961,"name":"DunglasJsonLdApiBundle","full_name":"theofidry/DunglasJsonLdApiBundle","owner":{"login":"theofidry","id":5175937,"avatar_url":"https://avatars.githubusercontent.com/u/5175937?v=3","gravatar_id":"","url":"https://api.github.com/users/theofidry","html_url":"https://github.com/theofidry","followers_url":"https://api.github.com/users/theofidry/followers","following_url":"https://api.github.com/users/theofidry/following{/other_user}","gists_url":"https://api.github.com/users/theofidry/gists{/gist_id}","starred_url":"https://api.github.com/users/theofidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theofidry/subscriptions","organizations_url":"https://api.github.com/users/theofidry/orgs","repos_url":"https://api.github.com/users/theofidry/repos","events_url":"https://api.github.com/users/theofidry/events{/privacy}","received_events_url":"https://api.github.com/users/theofidry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/theofidry/DunglasJsonLdApiBundle","description":"JSON-LD and Hydra REST API generator for Symfony","fork":true,"url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle","forks_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/forks","keys_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/teams","hooks_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/hooks","issue_events_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/issues/events{/number}","events_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/events","assignees_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/assignees{/user}","branches_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/branches{/branch}","tags_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/tags","blobs_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/languages","stargazers_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/stargazers","contributors_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/contributors","subscribers_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/subscribers","subscription_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/subscription","commits_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/contents/{+path}","compare_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/merges","archive_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/downloads","issues_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/issues{/number}","pulls_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/labels{/name}","releases_url":"https://api.github.com/repos/theofidry/DunglasJsonLdApiBundle/releases{/id}","created_at":"2015-04-02T09:34:42Z","updated_at":"2015-04-03T13:54:03Z","pushed_at":"2015-04-03T13:54:03Z","git_url":"git://github.com/theofidry/DunglasJsonLdApiBundle.git","ssh_url":"git@github.com:theofidry/DunglasJsonLdApiBundle.git","clone_url":"https://github.com/theofidry/DunglasJsonLdApiBundle.git","svn_url":"https://github.com/theofidry/DunglasJsonLdApiBundle","homepage":"http://dunglas.fr/2015/01/slides-a-propos-des-linked-data-et-des-api-rest-hypermedia-avec-symfony/","size":1058,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dunglas:master","ref":"master","sha":"3e418e6aa2b664ed0e2a94a611dd63f0d563684b","user":{"login":"dunglas","id":57224,"avatar_url":"https://avatars.githubusercontent.com/u/57224?v=3","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"repo":{"id":29501260,"name":"DunglasJsonLdApiBundle","full_name":"dunglas/DunglasJsonLdApiBundle","owner":{"login":"dunglas","id":57224,"avatar_url":"https://avatars.githubusercontent.com/u/57224?v=3","gravatar_id":"","url":"https://api.github.com/users/dunglas","html_url":"https://github.com/dunglas","followers_url":"https://api.github.com/users/dunglas/followers","following_url":"https://api.github.com/users/dunglas/following{/other_user}","gists_url":"https://api.github.com/users/dunglas/gists{/gist_id}","starred_url":"https://api.github.com/users/dunglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunglas/subscriptions","organizations_url":"https://api.github.com/users/dunglas/orgs","repos_url":"https://api.github.com/users/dunglas/repos","events_url":"https://api.github.com/users/dunglas/events{/privacy}","received_events_url":"https://api.github.com/users/dunglas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dunglas/DunglasJsonLdApiBundle","description":"JSON-LD and Hydra REST API generator for Symfony","fork":false,"url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle","forks_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/forks","keys_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/teams","hooks_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/hooks","issue_events_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/issues/events{/number}","events_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/events","assignees_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/assignees{/user}","branches_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/branches{/branch}","tags_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/tags","blobs_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/languages","stargazers_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/stargazers","contributors_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/contributors","subscribers_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/subscribers","subscription_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/subscription","commits_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/contents/{+path}","compare_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/merges","archive_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/downloads","issues_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/issues{/number}","pulls_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/labels{/name}","releases_url":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/releases{/id}","created_at":"2015-01-19T23:05:56Z","updated_at":"2015-04-03T13:32:19Z","pushed_at":"2015-04-03T18:43:09Z","git_url":"git://github.com/dunglas/DunglasJsonLdApiBundle.git","ssh_url":"git@github.com:dunglas/DunglasJsonLdApiBundle.git","clone_url":"https://github.com/dunglas/DunglasJsonLdApiBundle.git","svn_url":"https://github.com/dunglas/DunglasJsonLdApiBundle","homepage":"http://dunglas.fr/2015/01/slides-a-propos-des-linked-data-et-des-api-rest-hypermedia-avec-symfony/","size":1058,"stargazers_count":36,"watchers_count":36,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/pulls/19"},"html":{"href":"https://github.com/dunglas/DunglasJsonLdApiBundle/pull/19"},"issue":{"href":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/issues/19"},"comments":{"href":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/dunglas/DunglasJsonLdApiBundle/statuses/7a735f7954167eae8b87c135a93d8b417a74d111"}}}}