public function updateAction(array $siteConfigurations)
    {
        foreach ($siteConfigurations as $siteConfiguration) {
            if ($this->persistenceManager->isNewObject($siteConfiguration)) {
                $this->siteConfigurationRepository->add($siteConfiguration);
            } else {
                $this->siteConfigurationRepository->update($siteConfiguration);
            }
        }

        $this->emitSiteConfigurationChanged();

        $this->addFlashMessage('Configuration has been updated.', 'Update', null, [], 1417109043);
        $this->redirect('index');
    }