public function attach(AttachmentOwner $owner, Attachment $attachment) : Attachment { $attachment->attach($owner); $this->attachmentRepository->saveAttachment($attachment); return $attachment; }