Skip to content

Commit b675571

Browse files
committed
Fix repository.mode.stub, constructor not assign inject model to protected model var
1 parent b921003 commit b675571

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Console/stubs/repository.model.stub

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ class DummyClass extends Repository {
2020
* @param \DummyFullModelClass $DummyModelVariable
2121
* @return void
2222
*/
23-
public function __construct(DummyModelClass $DummyModelVariable) {}
23+
public function __construct(DummyModelClass $DummyModelVariable) {
24+
$ths->DummyModelVariable = $DummyModelVariable;
25+
}
2426

2527
/**
2628
* Get all of the models from the database.

0 commit comments

Comments
 (0)