Skip to content

Commit

Permalink
Merge pull request #34 from luemic/develop
Browse files Browse the repository at this point in the history
introduce and use schema grammar (fixes #33)
  • Loading branch information
pi0 committed Oct 21, 2016
2 parents 62ca0ed + 46a8003 commit b80d3e3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Connection.php
Expand Up @@ -3,6 +3,7 @@
namespace Moloquent;

use MongoDB\Client;
use Moloquent\Schema\Grammar;

class Connection extends \Illuminate\Database\Connection
{
Expand All @@ -27,6 +28,8 @@ class Connection extends \Illuminate\Database\Connection
*/
public function __construct(array $config)
{
$this->schemaGrammar = new Grammar();

$this->config = $config;

// Build the connection string
Expand Down
14 changes: 14 additions & 0 deletions src/Schema/Grammar.php
@@ -0,0 +1,14 @@
<?php

namespace Moloquent\Schema;

use Illuminate\Database\Schema\Grammars\Grammar as BaseGrammar;

/**
* Class Grammar
*
* @package Moloquent\Schema
*/
class Grammar extends BaseGrammar
{
}

0 comments on commit b80d3e3

Please sign in to comment.