Skip to content

Commit

Permalink
Merge pull request #42 from torkiljohnsen/patch-1
Browse files Browse the repository at this point in the history
Fix compatibility with ModelNotFoundException
  • Loading branch information
Caleb Fidecaro authored Oct 30, 2016
2 parents caa0e60 + b8ebebd commit 273b973
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Exceptions/ModelNotFoundForTenantException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ class ModelNotFoundForTenantException extends ModelNotFoundException implements
{
/**
* @param string $model
* @param int|array $ids
*
* @return $this
*/
public function setModel($model)
public function setModel($model, $ids = [])
{
parent::setModel($model);

$this->model = $model;
$this->message = "No query results for model [{$model}] when scoped by tenant.";

return $this;
Expand Down

0 comments on commit 273b973

Please sign in to comment.