testing
This commit is contained in:
@@ -110,4 +110,12 @@ class ProductCategoryAttributesTable extends Table
|
||||
|
||||
return $rules;
|
||||
}
|
||||
|
||||
public function getAllCategoryAttributesForCategoryId(string $internalCategoryId)
|
||||
{
|
||||
$category = $this->ProductCategories->find()->where(['internal_id' => $internalCategoryId])->firstOrFail();
|
||||
$categories = $this->ProductCategories->find('path', for: $category->id)->all();
|
||||
|
||||
return $categories;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user