From d3be9062bef424ee47dc325caf701ddb7ccfeb55 Mon Sep 17 00:00:00 2001 From: Stefan Ninic Date: Wed, 12 Feb 2020 11:27:57 +0100 Subject: [PATCH] url_friendly_id --- src/Models/Variation/Variation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/Variation/Variation.php b/src/Models/Variation/Variation.php index 09e37d5..3ac9d58 100644 --- a/src/Models/Variation/Variation.php +++ b/src/Models/Variation/Variation.php @@ -22,7 +22,7 @@ public function types() { $types = new TypeBuilder( $this->request ); $old_entity = $types->getEntity(); - $types->setEntity( str_replace( ':variation_number', $this->{$this->primaryKey}, $old_entity ) ); + $types->setEntity(str_replace(':variation_number', $this->{$this->url_friendly_id}, $old_entity)); return $types; }