Skip to content

Commit c1c766d

Browse files
authored
Add connection to grammer
1 parent 72ec5ff commit c1c766d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Connect/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getSchemaBuilder()
3232
*/
3333
protected function getDefaultQueryGrammar()
3434
{
35-
return $this->withTablePrefix(new Query\Grammar);
35+
return $this->withTablePrefix((new Query\Grammar)->setConnection($this));
3636
}
3737

3838
/**
@@ -42,7 +42,7 @@ protected function getDefaultQueryGrammar()
4242
*/
4343
protected function getDefaultSchemaGrammar()
4444
{
45-
return $this->withTablePrefix(new Schema\Grammar);
45+
return $this->withTablePrefix((new Schema\Grammar)->setConnection($this));
4646
}
4747

4848
/**

0 commit comments

Comments
 (0)