getUser()?->getId()) { throw new \Exception('Cannot handle un-persisted user'); } return [ $invoiceItem->getUser()->getId() ]; } public function getId(): string { return 'user'; } }