/** * @param Attendee $attendee */ public function appendPayment(Attendee $attendee, Payment $payment) { $attendee->addPayment($payment); $this->repository->update($attendee); }
/** * @param Attendee $attendee */ public function appendPayment(Attendee $attendee, Payment $payment) { $attendee->addPayment($payment); $this->repository->update($attendee); }