LMongo\Query\Builder::whereRegex PHP 메소드

whereRegex() 공개 메소드

Add an "$regex JavaScript operation" clause to logical operation.
public whereRegex ( string $column, mixed $value ) : LMongo\Query\Builder
$column string
$value mixed
리턴 LMongo\Query\Builder
    public function whereRegex($column, $value)
    {
        if (!$value instanceof MongoRegex) {
            $value = new MongoRegex($value);
        }
        return $this->where($column, $value, 'first');
    }
Builder