Newscoop\CommunityTickerBundle\EventListener\LifecycleSubscriber::update PHP Method

update() public method

public update ( GenericEvent $event )
$event Newscoop\EventDispatcher\Events\GenericEvent
    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');
    }