mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-26 05:26:17 +00:00
Unify piggy bank events. Does not save a link to the journal (yet)
This commit is contained in:
@@ -83,6 +83,7 @@ class JournalDestroyService
|
||||
$journal->notes()->delete();
|
||||
|
||||
// update events
|
||||
// TODO move to repository
|
||||
$journal->piggyBankEvents()->update(['transaction_journal_id' => null]);
|
||||
|
||||
$journal->delete();
|
||||
|
||||
@@ -105,7 +105,7 @@ class GroupCloneService
|
||||
// add note saying "cloned".
|
||||
|
||||
// add relation.
|
||||
// clone linked piggy banks
|
||||
// TODO clone ALL linked piggy banks
|
||||
/** @var PiggyBankEvent $event */
|
||||
$event = $journal->piggyBankEvents()->first();
|
||||
if(null !== $event) {
|
||||
|
||||
Reference in New Issue
Block a user