Fix ambiguous id.

This commit is contained in:
James Cole 2015-10-03 17:54:15 +02:00
parent 66fb63661f
commit 0bd18f94ac

View File

@ -154,7 +154,7 @@ class BillRepository implements BillRepositoryInterface
}
$journals = new Collection;
if (count($ids) > 0) {
$journals = Auth::user()->transactionjournals()->transactionTypes(['Withdrawal'])->whereIn('id', $ids)->get();
$journals = Auth::user()->transactionjournals()->transactionTypes(['Withdrawal'])->whereIn('transaction_journals.id', $ids)->get();
}
return $journals;