Skip to content

Commit

Permalink
Changed condition in initiateModel()
Browse files Browse the repository at this point in the history
  • Loading branch information
tswestendorp committed Jun 22, 2018
1 parent 4a560a2 commit 698a1fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Repository/Eloquent/BaseRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ abstract class BaseRepository extends PrettusBaseRepository

protected function initiateModel()
{
$modelClass = $this->model();
if (true === $this->model instanceof $modelClass) {
if (null !== $this->model) {
return;
}
$this->makeModel();
Expand Down

0 comments on commit 698a1fc

Please sign in to comment.