->
andWhere('emotions.parentId IS NULL'
) ->
andWhere('emotions.active = 1'
);
if ($limit !== null &&
$offset !== null
) { $queryBuilder->
setFirstResult($offset)->
setMaxResults($limit);
} $campaigns =
$queryBuilder->
getQuery()->
getArrayResult();
$routerCampaignTemplate =
$this->config->
get('routerCampaignTemplate'
);
foreach ($campaigns as $campaign) { $this->
sCreateRewriteTableForSingleCampaign( $this->translationComponent,
$languageId,
$fallbackId,
$campaign,
$routerCampaignTemplate );
} } /**
* @param int $shopId
* @param int $fallbackShopId
* @param string $routerCampaignTemplate
*
* @throws Exception
* @throws SmartyException
*/