Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getProductManufacturerFolderConfigurationId example
/** @var Connection $con */
$con
=
$this
->
getContainer
(
)
->
get
(
Connection::
class
)
;
if
(
\
count
(
$this
->
thumbnailSizesIds
(
$con
)
)
> 1
)
{
$this
->
revertMigration
(
$con
)
;
}
// 1920px is already registered
static
::
assertCount
(
1,
$this
->
thumbnailSizesIds
(
$con
)
)
;
$productManufacturerFolderConfigurationId
=
$this
->
getProductManufacturerFolderConfigurationId
(
$con
)
;
static
::
assertNotNull
(
$productManufacturerFolderConfigurationId
)
;
static
::
assertCount
(
0,
$this
->
getConfiguredThumbnailSizeIds
(
$con
,
$productManufacturerFolderConfigurationId
)
)
;
$m
=
new
Migration1687462843ProductManufacturerMediaThumbnails
(
)
;
$m
->
update
(
$con
)
;
$thumbnailSizeIds
=
$this
->
thumbnailSizesIds
(
$con
)
;
static
::
assertCount
(
3,
$thumbnailSizeIds
)
;