Releases: zoopcommerce/shard-module
Releases · zoopcommerce/shard-module
Hotfix: GenericException
Merge pull request #23 from crimsonronin/master Hotfix: Generic Exception
3.1.0: Query Range
This release allows a "range" filter for getList.
The syntax uses the math range notation eg. {10,20} which would retrieve all documents between 10 (inclusive) and 20. We use the ->range() doctrine function eg http://doctrine-mongodb-odm.readthedocs.org/en/latest/reference/query-builder-api.html
$qb = $dm->createQueryBuilder('Account')
->field('amount_due')->range(10, 20);It can perform range queries on a number of types eg.
- Date:
date={2014-01-01,2014-03-01}all documents betweenJan 1st 2014andFeb 28th 2014inclusive - Date:
date={2014-01-01,}all documents greater than or equal toJan 1st 2014 - Date:
date={,2014-03-01}all documents less thanMarch 1st 2014 - Int:
numComments={10,20}all documents with anumCommentsbetween10and19inclusive - Int:
numComments={10,}all documents with anumCommentsgreater than or equal to10 - Int:
numComments={,20}all documents with anumCommentsless than20 - Float:
score={90.5,99.99}all documents with ascorebetween90.5and99.98inclusive - Float:
score={90.5,}all documents with ascoregreater than or equal to90.5 - Float:
score={,99.99}all documents with ascoreless than99.99