Skip to content

Commit 1d0f18c

Browse files
committed
Add grammar to 2.2 as well, fixes #729
1 parent c495af5 commit 1d0f18c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Jenssegers/Mongodb/Query/Builder.php

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class Builder extends BaseBuilder
8585
*/
8686
public function __construct(Connection $connection, Processor $processor)
8787
{
88+
$this->grammar = new Grammar;
8889
$this->connection = $connection;
8990
$this->processor = $processor;
9091
}
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php namespace Jenssegers\Mongodb\Query;
2+
3+
use Illuminate\Database\Query\Grammars\Grammar as BaseGrammar;
4+
5+
class Grammar extends BaseGrammar
6+
{
7+
}

0 commit comments

Comments
 (0)