From e53d4b3fcc0f8e7491f5ba9a331bd9702bd00bf9 Mon Sep 17 00:00:00 2001 From: Attila Fulop <1162360+fulopattila122@users.noreply.github.com> Date: Thu, 7 Sep 2023 16:23:47 +0300 Subject: [PATCH] Always test your library code, kids! --- src/Foundation/Models/Channel.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Foundation/Models/Channel.php b/src/Foundation/Models/Channel.php index b23b9a05..9d401e39 100644 --- a/src/Foundation/Models/Channel.php +++ b/src/Foundation/Models/Channel.php @@ -27,31 +27,31 @@ class Channel extends BaseChannel { public function products(): MorphToMany { - return $this->morphedByMany(ProductProxy::modelClass(), 'channelables'); + return $this->morphedByMany(ProductProxy::modelClass(), 'channelable'); } public function masterProducts(): MorphToMany { - return $this->morphedByMany(MasterProductProxy::modelClass(), 'channelables'); + return $this->morphedByMany(MasterProductProxy::modelClass(), 'channelable'); } public function shippingMethods(): MorphToMany { - return $this->morphedByMany(ShippingMethodProxy::modelClass(), 'channelables'); + return $this->morphedByMany(ShippingMethodProxy::modelClass(), 'channelable'); } public function paymentMethods(): MorphToMany { - return $this->morphedByMany(PaymentMethodProxy::modelClass(), 'channelables'); + return $this->morphedByMany(PaymentMethodProxy::modelClass(), 'channelable'); } public function taxonomies(): MorphToMany { - return $this->morphedByMany(TaxonomyProxy::modelClass(), 'channelables'); + return $this->morphedByMany(TaxonomyProxy::modelClass(), 'channelable'); } public function properties(): MorphToMany { - return $this->morphedByMany(PropertyProxy::modelClass(), 'channelables'); + return $this->morphedByMany(PropertyProxy::modelClass(), 'channelable'); } }