Releases: TCB13/sequel-mongo-php
Releases · TCB13/sequel-mongo-php
You shall merge!
- QueryBuilder::merge() - takes a variable number of QueryBuilder instances and merges them into one;
- Added SpecialFunction interface;
- Better PSR compliance.
Join
Push & Pull
- Added Class Push and Pull to use on collection updates.
Safe Regex
- Safer regex searches.
Minimize
You Shall Increment
- New Increment special function;
- Improved Where() operator detection;
- Fixed RawFilter bugs.
Special Ops
New features:
- PHP DateTime objects passed to
insert()
andupdate()
are now automatically converted to MongoDB's UTCDateTime instances; setGlobalConnection()
: set a global connection to be used by all new instances of the query builder;- Class
Count
: count the number of documents/records that match a query; - Class
ArrayContains
: check if an array in a document contains a value; - Class
ArrayLength
: get the length of an array; - Class
Max
: get the maximum value in a set of values. whereContains()
,whereStartsWith()
and other string related queries can now be set as case sensitive or not;
Improvements and bug fixes:
- Result ordering now working;
- More reliable alias on
select()
; - Better result deserialization - data-types on nested documents are now kept as they are stored on the database. The old behavior can still be used by calling
toArray(true)
.
You shall normalize!
Fixed:
- Filter normalization for delete() and update();
- Issues when a result is casted to an object;
- Typos
Name it Wisely!
1.0.2 Typo fix.
Name it Wisely!
1.0.1 Typo fix.