Doctrine\MongoDB\Query\Expr::field PHP Метод

field() публичный Метод

Set the current field for building the expression.
См. также: Builder::field()
public field ( string $field )
$field string
    public function field($field)
    {
        $this->currentField = (string) $field;
        return $this;
    }

Usage Example

Пример #1
0
 public function testOperatorWithCurrentField()
 {
     $expr = new Expr();
     $expr->field('field');
     $this->assertSame($expr, $expr->operator('$op', 'value'));
     $this->assertEquals(array('field' => array('$op' => 'value')), $expr->getQuery());
 }
All Usage Examples Of Doctrine\MongoDB\Query\Expr::field