src/Repositories/ProductMediaGalleryValueToEntityRepository.php
public function findOneByValueIdAndRowId($valueId, $rowId)
    {

        // initialize the params
        $params = array(
            MemberNames::VALUE_ID  => $valueId,
            MemberNames::ROW_ID    => $rowId
        );

        // load and return the prodcut media gallery value to entity with the passed value/entity ID
        $this->productMediaGalleryValueToEntityStmt->execute($params);
        return $this->productMediaGalleryValueToEntityStmt->fetch(\PDO::FETCH_ASSOC);
    }
public function findOneByValueIdAndRowId($valueId, $rowId)
    {

        // initialize the params
        $params = array(
            MemberNames::VALUE_ID  => $valueId,
            MemberNames::ROW_ID    => $rowId
        );

        // load and return the prodcut media gallery value to entity with the passed value/entity ID
        $this->productMediaGalleryValueToEntityStmt->execute($params);
        return $this->productMediaGalleryValueToEntityStmt->fetch(\PDO::FETCH_ASSOC);
    }
Load's the product media gallery with the passed value/row ID.

@param integer $valueId The value ID of the product media gallery value to entity to load
@param integer $rowId   The row ID of the product media gallery value to entity to load

@return array The product media gallery