Skip to content

Commit

Permalink
for new issue
Browse files Browse the repository at this point in the history
edit Connection.php for fixing
[Symfony\Component\Debug\Exception\FatalThrowableError]         
  Call to a member function supportsSchemaTransactions() on null 

add following in existing file

use duxet\Rethinkdb\Schema\Grammar;
and
$this->schemaGrammar = new Grammar();
after 
$this->useDefaultPostProcessor();
  • Loading branch information
bhavikji committed Nov 11, 2017
1 parent 6edf493 commit aa89609
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Connection.php
Expand Up @@ -3,6 +3,7 @@
namespace duxet\Rethinkdb;

use duxet\Rethinkdb\Query\Builder as QueryBuilder;
use duxet\Rethinkdb\Schema\Grammar;
use r;

class Connection extends \Illuminate\Database\Connection
Expand Down Expand Up @@ -35,6 +36,7 @@ public function __construct(array $config)
// so we initialize these to their default values when starting.
$this->useDefaultQueryGrammar();
$this->useDefaultPostProcessor();
$this->schemaGrammar = new Grammar();
}

/**
Expand Down

0 comments on commit aa89609

Please sign in to comment.