public function findOneByAttributeIdAndValue($attributeId, $value)
    {

        // initialize the params
        $params = array(
            MemberNames::ATTRIBUTE_ID => $attributeId,
            MemberNames::VALUE        => $value
        );

        // load and return the prodcut media gallery with the passed attribute ID + value
        $this->productMediaGalleryStmt->execute($params);
        return $this->productMediaGalleryStmt->fetch(\PDO::FETCH_ASSOC);
    }
public function findOneByAttributeIdAndValue($attributeId, $value)
    {

        // initialize the params
        $params = array(
            MemberNames::ATTRIBUTE_ID => $attributeId,
            MemberNames::VALUE        => $value
        );

        // load and return the prodcut media gallery with the passed attribute ID + value
        $this->productMediaGalleryStmt->execute($params);
        return $this->productMediaGalleryStmt->fetch(\PDO::FETCH_ASSOC);
    }
public function findOneByAttributeIdAndValue ( $ attributeId , $ value ) { // initialize the params $ params = array ( MemberNames :: ATTRIBUTE_ID => $ attributeId , MemberNames :: VALUE => $ value ) ; // load and return the prodcut media gallery with the passed attribute ID + value $ this -> productMediaGalleryStmt -> execute ( $ params ) ; return $ this -> productMediaGalleryStmt -> fetch ( \ PDO :: FETCH_ASSOC ) ; }
Load's the product media gallery with the passed attribute ID + value.

@param integer $attributeId The attribute ID of the product media gallery to load
@param string  $value       The value of the product media gallery to load

@return array The product media gallery
Load s the product media gallery with the passed attribute ID + value .