Always add whereColumn

Fixes #300, #325
This commit is contained in:
Barry vd. Heuvel
2016-03-02 10:42:37 +01:00
parent c213be3d3c
commit 467b5f5b5f
+1 -11
View File
@@ -291,17 +291,7 @@ class ModelsCommand extends Command
$comment = $column->getComment();
$this->setProperty($name, $type, true, true, $comment);
/*
Only add whereXXX() helper function comment to _ide_helper_models.php,
keep model file as simple as possible.
*/
if (!$this->write) {
$this->setMethod(
Str::camel("where_" . $name),
'\Illuminate\Database\Query\Builder|\\' . get_class($model),
array('$value')
);
}
$this->setMethod(Str::camel("where_" . $name), '\Illuminate\Database\Query\Builder|\\' . get_class($model), array('$value'));
}
}
}