Skip to content

Commit

Permalink
Made backwards incompatible change:
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammaye committed Jul 1, 2013
1 parent 88cce6e commit 2b728ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EMongoCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ public function addOrCondition($condition){
* @param boolean $strong
* @return EMongoCriteria
*/
public function compare($column, $value = null, $strong = false) {
public function compare($column, $value = null, $partialMatch = false) {
if ($value===null)
return $this;
$query = array();
if (preg_match('/^(?:\s*(<>|<=|>=|<|>|=))?(.*)$/', $value, $matches)) {
$value = $matches[2];
$op = $matches[1];
if (!$strong)
if ($partialMatch===true)
$value = new MongoRegex("/$value/i");
else {
if(
Expand Down

0 comments on commit 2b728ce

Please sign in to comment.