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

install() public method

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