protected function initializeUrlRewriteProductCategory($attr)
    {

        // try to load the URL rewrite product category relation
        if ($urlRewriteProductCategory = $this->loadUrlRewriteProductCategory($attr[MemberNames::URL_REWRITE_ID])) {
            return $this->mergeEntity($urlRewriteProductCategory, $attr);
        }

        // simple return the URL rewrite product category
        return $attr;
    }
protected function initializeUrlRewriteProductCategory($attr)
    {

        // try to load the URL rewrite product category relation
        if ($urlRewriteProductCategory = $this->loadUrlRewriteProductCategory($attr[MemberNames::URL_REWRITE_ID])) {
            return $this->mergeEntity($urlRewriteProductCategory, $attr);
        }

        // simple return the URL rewrite product category
        return $attr;
    }
protected function initializeUrlRewriteProductCategory ( $ attr ) { // try to load the URL rewrite product category relation if ( $ urlRewriteProductCategory = $ this -> loadUrlRewriteProductCategory ( $ attr [ MemberNames :: URL_REWRITE_ID ] ) ) { return $ this -> mergeEntity ( $ urlRewriteProductCategory , $ attr ) ; } // simple return the URL rewrite product category return $ attr ; }
Initialize the URL rewrite product => category relation with the passed attributes
and returns an instance.

@param array $attr The URL rewrite product => category relation attributes

@return array|null The initialized URL rewrite product => category relation
Initialize the URL rewrite product = > category relation with the passed attributes and returns an instance .