public function update(GenericEvent $event)
{
$tool = new \Doctrine\ORM\Tools\SchemaTool($this->em);
$tool->updateSchema($this->getClasses(), true);
// Generate proxies for entities
$this->em->getProxyFactory()->generateProxyClasses($this->getClasses(), __DIR__ . '/../../../../library/Proxy');
// Update articletype
$this->articleTypeConfigurationService->update();
// Register parsers
$this->dispatcher->dispatch('newscoop_ingest.parser.register', new IngestParsersEvent($this, array()));
// Only add if the job doesn't exist
$this->updateJobs();
// Set persissions
$this->setPermissions();
}