Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
createMapping example
/** * @return void */
public
function
index
(
ProgressHelperInterface
$helper
)
{
foreach
(
$this
->repositories
as
$repository
)
{
$index
=
$this
->indexFactory->
createIndexConfiguration
(
$repository
->
getDomainName
(
)
)
;
$this
->
createIndex
(
$index
)
;
$this
->
createMapping
(
$repository
,
$index
->
getName
(
)
)
;
$this
->
populateEntity
(
$index
->
getName
(
)
,
$repository
,
$helper
)
;
$this
->
createAlias
(
$index
->
getName
(
)
,
$index
->
getAlias
(
)
)
;
}
}
/** * @param string $index * @param array<int> $ids * * @return void */