1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

API optimization

This commit is contained in:
Hillel Coren 2016-07-19 10:07:56 +03:00
parent 109c97dc55
commit e7c8ca50db

View File

@ -6,6 +6,8 @@ class InvitationTransformer extends EntityTransformer
{
public function transform(Invitation $invitation)
{
$invitation->setRelation('account', $this->account);
return [
'id' => (int) $invitation->public_id,
'key' => $invitation->getName(),