Update ModelsCommand.php

Fix for #61 - also returns query builder instance
This commit is contained in:
Matthew Hailwood
2014-02-23 18:05:03 +13:00
parent 7b47af171d
commit 23b41db33d
@@ -237,7 +237,7 @@ class ModelsCommand extends Command {
$this->setProperty($name, $type, true, true); $this->setProperty($name, $type, true, true);
$this->setMethod(Str::camel("where_".$name), '\\'.get_class($model), array('$value')); $this->setMethod(Str::camel("where_".$name), '\Illuminate\Database\Query\Builder|\\'.get_class($model), array('$value'));
} }
} }
} }