This commit is contained in:
James Cole
2018-03-19 09:33:48 +01:00
parent 601ca9ec80
commit 31146954d1
2 changed files with 6 additions and 2 deletions

View File

@@ -129,7 +129,11 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
{
/** @var PiggyBankEvent $event */
$event = PiggyBankEvent::create(
['piggy_bank_id' => $piggyBank->id, 'transaction_journal_id' => $journal->id, 'date' => $journal->date, 'amount' => $amount]
[
'piggy_bank_id' => $piggyBank->id,
'transaction_journal_id' => $journal->id,
'date' => $journal->date->format('Y-m-d'),
'amount' => $amount]
);
return $event;