Add comment

This commit is contained in:
Hillel Coren 2017-11-16 21:02:36 +02:00
parent f1453fe9a3
commit dbf136ba41

View File

@ -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;