class Expr extends Expr (View source)

Query expression builder for ODM.

Methods

__construct(DocumentManager $dm)

No description

setClassMetadata(ClassMetadata $class)

Sets ClassMetadata for document being queried.

references(object $document)

Checks that the value of the current field is a reference to the supplied document.

includesReferenceTo(object $document)

Checks that the current field includes a reference to the supplied document.

array
getQuery()

Gets prepared query part of expression.

array
getNewObj()

Gets prepared newObj part of expression.

Details

__construct(DocumentManager $dm)

Parameters

DocumentManager $dm

setClassMetadata(ClassMetadata $class)

Sets ClassMetadata for document being queried.

Parameters

ClassMetadata $class

Expr references(object $document)

Checks that the value of the current field is a reference to the supplied document.

Parameters

object $document

Return Value

Expr

Expr includesReferenceTo(object $document)

Checks that the current field includes a reference to the supplied document.

Parameters

object $document

Return Value

Expr

array getQuery()

Gets prepared query part of expression.

Return Value

array

array getNewObj()

Gets prepared newObj part of expression.

Return Value

array