mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
API can deal with attachments for more models. #2828
This commit is contained in:
@@ -680,4 +680,12 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getAttachments(PiggyBank $piggyBank): Collection
|
||||
{
|
||||
return $piggyBank->attachments()->get();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user