mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
INA-6 | Add purchase order invitations relationship to the VendorContact.php
This commit is contained in:
parent
d1f9235cec
commit
426e8967d1
@ -136,4 +136,8 @@ class VendorContact extends Authenticatable implements HasLocalePreference
|
|||||||
->withTrashed()
|
->withTrashed()
|
||||||
->where('id', $this->decodePrimaryKey($value))->firstOrFail();
|
->where('id', $this->decodePrimaryKey($value))->firstOrFail();
|
||||||
}
|
}
|
||||||
|
public function purchase_order_invitations(): \Illuminate\Database\Eloquent\Relations\HasMany
|
||||||
|
{
|
||||||
|
return $this->hasMany(PurchaseOrderInvitation::class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user