Skip to content

Commit

Permalink
Update CatalogProductEntity.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Genaker authored Nov 19, 2021
1 parent 983df11 commit 5bd7e16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Models/CatalogProductEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
* @property Collection|ReportViewedProductIndex[] $report_viewed_product_indices
* @property Collection|WeeeTax[] $weee_taxes
* @property Collection|WishlistItem[] $wishlist_items
* @property Collection|UrlRewrite[] $url_rewrites
*
* @package Laragento\Models
*/
Expand Down Expand Up @@ -148,6 +149,11 @@ public function catalog_product_entity_varchars()
{
return $this->hasMany(CatalogProductEntityVarchar::class, 'entity_id');
}

public function url_rewrites()
{
return $this->hasMany(UrlRewrite::class, strtolower('Entity_iD'));
}

public function catalog_product_frontend_actions()
{
Expand Down

0 comments on commit 5bd7e16

Please sign in to comment.