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

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

Specify an equality match for the current field.
См. также: Builder::equals()
public equals ( mixed $value )
$value mixed
    public function equals($value)
    {
        if ($this->currentField) {
            $this->query[$this->currentField] = $value;
        } else {
            $this->query = $value;
        }
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * Specify an equality match for the current field.
  *
  * @see Expr::equals()
  * @param mixed $value
  * @return self
  */
 public function equals($value)
 {
     $this->expr->equals($value);
     return $this;
 }
All Usage Examples Of Doctrine\MongoDB\Query\Expr::equals