class Expr extends Expr (View source)

Query expression builder for ODM.

Methods

__construct(DocumentManager $dm)

No description

setClassMetadata(ClassMetadata $class)

No description

references($document)

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

includesReferenceTo($document)

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

getQuery()

No description

getNewObj()

No description

Details

__construct(DocumentManager $dm)

Parameters

DocumentManager $dm

setClassMetadata(ClassMetadata $class)

Parameters

ClassMetadata $class

references($document)

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

Parameters

$document

includesReferenceTo($document)

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

Parameters

$document

getQuery()

getNewObj()