You are here

public static function Criteria::expr in Plug 7

Returns the expression builder.

Return value

\Doctrine\Common\Collections\ExpressionBuilder

1 call to Criteria::expr()
CriteriaTest::testExpr in lib/doctrine/collections/tests/Doctrine/Tests/Common/Collections/CriteriaTest.php

File

lib/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php, line 83

Class

Criteria
Criteria for filtering Selectable collections.

Namespace

Doctrine\Common\Collections

Code

public static function expr() {
  if (self::$expressionBuilder === null) {
    self::$expressionBuilder = new ExpressionBuilder();
  }
  return self::$expressionBuilder;
}