src/Repositories/ProductWebsiteRepository.php
public function findOneByProductIdAndWebsite($productId, $websiteId)
    {

        // prepare the params
        $params = array(
            MemberNames::PRODUCT_ID => $productId,
            MemberNames::WEBSITE_ID => $websiteId
        );

        // load and return the product with the passed product/website ID
        $this->productWebsiteStmt->execute($params);
        return $this->productWebsiteStmt->fetch(\PDO::FETCH_ASSOC);
    }
public function findOneByProductIdAndWebsite($productId, $websiteId)
    {

        // prepare the params
        $params = array(
            MemberNames::PRODUCT_ID => $productId,
            MemberNames::WEBSITE_ID => $websiteId
        );

        // load and return the product with the passed product/website ID
        $this->productWebsiteStmt->execute($params);
        return $this->productWebsiteStmt->fetch(\PDO::FETCH_ASSOC);
    }
public function findOneByProductIdAndWebsite ( $ productId , $ websiteId ) { // prepare the params $ params = array ( MemberNames :: PRODUCT_ID => $ productId , MemberNames :: WEBSITE_ID => $ websiteId ) ; // load and return the product with the passed product/website ID $ this -> productWebsiteStmt -> execute ( $ params ) ; return $ this -> productWebsiteStmt -> fetch ( \ PDO :: FETCH_ASSOC ) ; }
Load's and return's the product website relation with the passed product and website ID.

@param string $productId The product ID of the relation
@param string $websiteId The website ID of the relation

@return array The product website
Load s and return s the product website relation with the passed product and website ID .