@@ -128,6 +128,7 @@ class Category extends \Magento\Catalog\Model\AbstractModel implements
128128 'page_layout ' ,
129129 'custom_layout_update ' ,
130130 'custom_apply_to_products ' ,
131+ 'custom_use_parent_settings ' ,
131132 ];
132133
133134 /**
@@ -317,9 +318,11 @@ protected function getCustomAttributesCodes()
317318 * @throws \Magento\Framework\Exception\LocalizedException
318319 * @return \Magento\Catalog\Model\ResourceModel\Category
319320 * @deprecated because resource models should be used directly
321+ * phpcs:disable Generic.CodeAnalysis.UselessOverridingMethod
320322 */
321323 protected function _getResource ()
322324 {
325+ //phpcs:enable Generic.CodeAnalysis.UselessOverridingMethod
323326 return parent ::_getResource ();
324327 }
325328
@@ -606,11 +609,13 @@ public function getUrl()
606609 return $ this ->getData ('url ' );
607610 }
608611
609- $ rewrite = $ this ->urlFinder ->findOneByData ([
610- UrlRewrite::ENTITY_ID => $ this ->getId (),
611- UrlRewrite::ENTITY_TYPE => CategoryUrlRewriteGenerator::ENTITY_TYPE ,
612- UrlRewrite::STORE_ID => $ this ->getStoreId (),
613- ]);
612+ $ rewrite = $ this ->urlFinder ->findOneByData (
613+ [
614+ UrlRewrite::ENTITY_ID => $ this ->getId (),
615+ UrlRewrite::ENTITY_TYPE => CategoryUrlRewriteGenerator::ENTITY_TYPE ,
616+ UrlRewrite::STORE_ID => $ this ->getStoreId (),
617+ ]
618+ );
614619 if ($ rewrite ) {
615620 $ this ->setData ('url ' , $ this ->getUrlInstance ()->getDirectUrl ($ rewrite ->getRequestPath ()));
616621 Profiler::stop ('REWRITE: ' . __METHOD__ );
0 commit comments