Skip to content

Commit

Permalink
Fixed: #219
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammaye committed Jul 1, 2014
1 parent 6741c3c commit 987d21d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EMongoCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function addCondition($column, $value, $operator = null) {
* @return EMongoCriteria
*/
public function addOrCondition($condition){
$this->_condition['$or'] = $condition;
$this->_condition['$and'][] = array('$or' => $condition);
return $this;
}

Expand Down

0 comments on commit 987d21d

Please sign in to comment.