{"action":"created","issue":{"url":"https://api.github.com/repos/dunglas/DunglasApiBundle/issues/364","labels_url":"https://api.github.com/repos/dunglas/DunglasApiBundle/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/dunglas/DunglasApiBundle/issues/364/comments","events_url":"https://api.github.com/repos/dunglas/DunglasApiBundle/issues/364/events","html_url":"https://github.com/dunglas/DunglasApiBundle/pull/364","id":121738520,"number":364,"title":"Add RangeFilter","user":{"login":"ahlee2326","id":324418,"avatar_url":"https://avatars.githubusercontent.com/u/324418?v=3","gravatar_id":"","url":"https://api.github.com/users/ahlee2326","html_url":"https://github.com/ahlee2326","followers_url":"https://api.github.com/users/ahlee2326/followers","following_url":"https://api.github.com/users/ahlee2326/following{/other_user}","gists_url":"https://api.github.com/users/ahlee2326/gists{/gist_id}","starred_url":"https://api.github.com/users/ahlee2326/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahlee2326/subscriptions","organizations_url":"https://api.github.com/users/ahlee2326/orgs","repos_url":"https://api.github.com/users/ahlee2326/repos","events_url":"https://api.github.com/users/ahlee2326/events{/privacy}","received_events_url":"https://api.github.com/users/ahlee2326/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-11T16:09:09Z","updated_at":"2015-12-12T11:16:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dunglas/DunglasApiBundle/pulls/364","html_url":"https://github.com/dunglas/DunglasApiBundle/pull/364","diff_url":"https://github.com/dunglas/DunglasApiBundle/pull/364.diff","patch_url":"https://github.com/dunglas/DunglasApiBundle/pull/364.patch"},"body":"Filter collections from range, can be either (between / lt / lte / gt / gte). This is useful when dealing with min price and max price, duration and etc.\r\n\r\nSample usage: \r\ndummy?dummyPrice[between]=12.99..19.99\r\ndummy?dummyPrice[gt]=15.99&dummyPrice[lte]=19.99\r\n...\r\n"},"comment":{"url":"https://api.github.com/repos/dunglas/DunglasApiBundle/issues/comments/164139599","html_url":"https://github.com/dunglas/DunglasApiBundle/pull/364#issuecomment-164139599","issue_url":"https://api.github.com/repos/dunglas/DunglasApiBundle/issues/364","id":164139599,"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},"created_at":"2015-12-12T11:16:17Z","updated_at":"2015-12-12T11:16:17Z","body":">But I think these filters are quite simple and general that most of the application will need.\r\n\r\nLike having a `neq`, `like` and `nlike`. And then you find yourself 3/4 of the functionalities available in LoopBackApiBundle, which I originally created because the filter provided out of the box with DunglasApiBundle was not advanced enough for my taste but was not about being improved because it would mean having too complex filters.\r\n\r\nWhat I have said is not final, but we must draw a line. We're already providing two filters with a multi-property search (order and where) with support for null ordering. They alone takes already over 1300 LoC out of the 8000 LoC of the filters. That's not a trivial amount for something that is not the core of the library but rather an extension, and specific to Doctrine ORM.\r\n\r\nThat's why I would rather keep the core library simple and have another library for a more advanced filters."}}