Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Commit

Permalink
Add expr method to aggregation expression object
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Mar 17, 2016
1 parent 2e17347 commit e56404e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/Doctrine/MongoDB/Aggregation/Expr.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,18 @@ public function exp($exponent)
return $this->operator('$exp', $exponent);
}

/**
* Returns a new expression object
*
* @return static
*
* @since 1.3
*/
public function expr()
{
return new static();
}

/**
* Allows any expression to be used as a field value.
*
Expand Down

0 comments on commit e56404e

Please sign in to comment.