protected function initializeBundleOption(array $attr)
    {

        // load the parent ID, the name and the store ID
        $parentId = $attr[MemberNames::PARENT_ID];
        $name = $this->getValue(ColumnKeys::BUNDLE_VALUE_NAME);
        $storeId = $this->getRowStoreId(StoreViewCodes::ADMIN);

        // try to load the bundle option with the passed name/store/parent ID
        if ($entity = $this->loadBundleOption($name, $storeId, $parentId)) {
            return $this->mergeEntity($entity, $attr);
        }

        // simply return the attributes
        return $attr;
    }
protected function initializeBundleOption(array $attr)
    {

        // load the parent ID, the name and the store ID
        $parentId = $attr[MemberNames::PARENT_ID];
        $name = $this->getValue(ColumnKeys::BUNDLE_VALUE_NAME);
        $storeId = $this->getRowStoreId(StoreViewCodes::ADMIN);

        // try to load the bundle option with the passed name/store/parent ID
        if ($entity = $this->loadBundleOption($name, $storeId, $parentId)) {
            return $this->mergeEntity($entity, $attr);
        }

        // simply return the attributes
        return $attr;
    }
protected function initializeBundleOption ( array $ attr ) { // load the parent ID, the name and the store ID $ parentId = $ attr [ MemberNames :: PARENT_ID ] ; $ name = $ this -> getValue ( ColumnKeys :: BUNDLE_VALUE_NAME ) ; $ storeId = $ this -> getRowStoreId ( StoreViewCodes :: ADMIN ) ; // try to load the bundle option with the passed name/store/parent ID if ( $ entity = $ this -> loadBundleOption ( $ name , $ storeId , $ parentId ) ) { return $ this -> mergeEntity ( $ entity , $ attr ) ; } // simply return the attributes return $ attr ; }
Initialize the bundle option with the passed attributes and returns an instance.

@param array $attr The bundle option attributes

@return array The initialized bundle option
Initialize the bundle option with the passed attributes and returns an instance .