From 426e8967d1871f974dd3fb81a3bce86b8e0708bf Mon Sep 17 00:00:00 2001 From: Nikola Cirkovic Date: Sun, 5 Jun 2022 04:40:48 +0200 Subject: [PATCH] INA-6 | Add purchase order invitations relationship to the VendorContact.php --- app/Models/VendorContact.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Models/VendorContact.php b/app/Models/VendorContact.php index 5c2e373c8311..2b2fcd3f1252 100644 --- a/app/Models/VendorContact.php +++ b/app/Models/VendorContact.php @@ -136,4 +136,8 @@ class VendorContact extends Authenticatable implements HasLocalePreference ->withTrashed() ->where('id', $this->decodePrimaryKey($value))->firstOrFail(); } + public function purchase_order_invitations(): \Illuminate\Database\Eloquent\Relations\HasMany + { + return $this->hasMany(PurchaseOrderInvitation::class); + } }