public function findOneByOptionIdAndStoreId($optionId, $storeId)
    {

        // the parameters of the EAV attribute option to load
        $params = array(
            MemberNames::OPTION_ID => $optionId,
            MemberNames::STORE_ID  => $storeId,
        );

        // prepare the cache key
        $cacheKey = $this->cacheKey(SqlStatementKeys::EAV_ATTRIBUTE_OPTION_VALUE_BY_OPTION_ID_AND_STORE_ID, $params);

        // return the cached result if available
        if ($this->isCached($cacheKey)) {
            return $this->fromCache($cacheKey);
        }

        // load and return the EAV attribute option value with the passed parameters
        $this->eavAttributeOptionValueByOptionIdAndStoreIdStmt->execute($params);

        // query whether or not the EAV attribute option value is available in the database
        if ($eavAttributeOptionValue = $this->eavAttributeOptionValueByOptionIdAndStoreIdStmt->fetch(\PDO::FETCH_ASSOC)) {
            // add the EAV attribute option value to the cache, register the cache key reference as well
            $this->toCache(
                $eavAttributeOptionValue[MemberNames::VALUE_ID],
                $eavAttributeOptionValue,
                array($cacheKey => $eavAttributeOptionValue[MemberNames::VALUE_ID])
            );
            // finally, return it
            return $eavAttributeOptionValue;
        }
    }
public function findOneByOptionIdAndStoreId($optionId, $storeId)
    {

        // the parameters of the EAV attribute option to load
        $params = array(
            MemberNames::OPTION_ID => $optionId,
            MemberNames::STORE_ID  => $storeId,
        );

        // prepare the cache key
        $cacheKey = $this->cacheKey(SqlStatementKeys::EAV_ATTRIBUTE_OPTION_VALUE_BY_OPTION_ID_AND_STORE_ID, $params);

        // return the cached result if available
        if ($this->isCached($cacheKey)) {
            return $this->fromCache($cacheKey);
        }

        // load and return the EAV attribute option value with the passed parameters
        $this->eavAttributeOptionValueByOptionIdAndStoreIdStmt->execute($params);

        // query whether or not the EAV attribute option value is available in the database
        if ($eavAttributeOptionValue = $this->eavAttributeOptionValueByOptionIdAndStoreIdStmt->fetch(\PDO::FETCH_ASSOC)) {
            // add the EAV attribute option value to the cache, register the cache key reference as well
            $this->toCache(
                $eavAttributeOptionValue[MemberNames::VALUE_ID],
                $eavAttributeOptionValue,
                array($cacheKey => $eavAttributeOptionValue[MemberNames::VALUE_ID])
            );
            // finally, return it
            return $eavAttributeOptionValue;
        }
    }
public function findOneByOptionIdAndStoreId ( $ optionId , $ storeId ) { // the parameters of the EAV attribute option to load $ params = array ( MemberNames :: OPTION_ID => $ optionId , MemberNames :: STORE_ID => $ storeId , ) ; // prepare the cache key $ cacheKey = $ this -> cacheKey ( SqlStatementKeys :: EAV_ATTRIBUTE_OPTION_VALUE_BY_OPTION_ID_AND_STORE_ID , $ params ) ; // return the cached result if available if ( $ this -> isCached ( $ cacheKey ) ) { return $ this -> fromCache ( $ cacheKey ) ; } // load and return the EAV attribute option value with the passed parameters $ this -> eavAttributeOptionValueByOptionIdAndStoreIdStmt -> execute ( $ params ) ; // query whether or not the EAV attribute option value is available in the database if ( $ eavAttributeOptionValue = $ this -> eavAttributeOptionValueByOptionIdAndStoreIdStmt -> fetch ( \ PDO :: FETCH_ASSOC ) ) { // add the EAV attribute option value to the cache, register the cache key reference as well $ this -> toCache ( $ eavAttributeOptionValue [ MemberNames :: VALUE_ID ] , $ eavAttributeOptionValue , array ( $ cacheKey => $ eavAttributeOptionValue [ MemberNames :: VALUE_ID ] ) ) ; // finally, return it return $ eavAttributeOptionValue ; } }
Load's and return's the EAV attribute option value with the passed option ID and store ID

@param string  $optionId The option ID of the attribute option
@param integer $storeId  The store ID of the attribute option to load

@return array The EAV attribute option value
Load s and return s the EAV attribute option value with the passed option ID and store ID