Add comment
This commit is contained in:
parent
f1453fe9a3
commit
dbf136ba41
1 changed files with 1 additions and 0 deletions
|
|
@ -161,6 +161,7 @@ class EntityModel extends Eloquent
|
|||
|
||||
$query->where($this->getTable() .'.account_id', '=', $accountId);
|
||||
|
||||
// If 'false' is passed as the publicId return nothing rather than everything
|
||||
if (func_num_args() > 1 && ! $publicId && ! $accountId) {
|
||||
$query->where('id', '=', 0);
|
||||
return $query;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue