id was ambiguous.

This commit is contained in:
James Cole 2015-07-26 19:10:31 +02:00
parent 3e05fd91d9
commit c8227e09ee

View File

@ -131,7 +131,7 @@ class AccountRepository implements AccountRepositoryInterface
$query = Auth::user()->accounts()->accountTypeIn(['Default account', 'Asset account']);
if (count($preference->data) > 0) {
$query->whereIn('id', $preference->data);
$query->whereIn('accounts.id', $preference->data);
}
$result = $query->get(['accounts.*']);