Skip to content

Commit ad9dc56

Browse files
committed
Fixes #104
1 parent 76781d7 commit ad9dc56

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

src/Jenssegers/Mongodb/Schema/Blueprint.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,6 @@ public function drop()
178178
$this->collection->drop();
179179
}
180180

181-
/**
182-
* Allow an attribute to be null, does not do anything.
183-
*
184-
* @return Blueprint
185-
*/
186-
public function nullable()
187-
{
188-
return $this;
189-
}
190-
191181
/**
192182
* Add a new column to the blueprint.
193183
*
@@ -224,4 +214,14 @@ protected function fluent($columns = null)
224214
}
225215
}
226216

217+
/**
218+
* Allows the use of unsupported schema methods.
219+
*
220+
* @return Blueprint
221+
*/
222+
public function __call($method, $args)
223+
{
224+
return $this;
225+
}
226+
227227
}

tests/SchemaTest.php

+9
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,15 @@ public function testFluent()
141141
$this->assertEquals(1, $index['key']['token']);
142142
}
143143

144+
public function testDummies()
145+
{
146+
Schema::collection('newcollection', function($collection)
147+
{
148+
$collection->boolean('activated')->default(0);
149+
$collection->integer('user_id')->unsigned();
150+
});
151+
}
152+
144153
protected function getIndex($collection, $name)
145154
{
146155
$collection = DB::getCollection($collection);

0 commit comments

Comments
 (0)