File tree Expand file tree Collapse file tree 2 files changed +19
-10
lines changed
src/Jenssegers/Mongodb/Schema Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments