![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/amasty/shopby/Model/ResourceModel/Catalog/Category/ |
<?php /** * @author Amasty Team * @copyright Copyright (c) Amasty (https://www.amasty.com) * @package Improved Layered Navigation Base for Magento 2 */ namespace Amasty\Shopby\Model\ResourceModel\Catalog\Category; use Magento\CatalogUrlRewrite\Model\CategoryUrlRewriteGenerator; class Collection extends \Magento\Catalog\Model\ResourceModel\Category\Collection { /** * Remove "{{table}}.is_autogenerated = 1" in comparison with parent class. * * @return $this */ public function joinUrlRewrite() { $this->joinTable( 'url_rewrite', 'entity_id = entity_id', ['request_path'], sprintf( '{{table}}.store_id = %d AND {{table}}.entity_type = \'%s\'', $this->_storeManager->getStore()->getId(), CategoryUrlRewriteGenerator::ENTITY_TYPE ), 'left' ); return $this; } }