Skip to content

Instantly share code, notes, and snippets.

@mikeemoo
Created May 29, 2012 15:23
Show Gist options
  • Select an option

  • Save mikeemoo/2829038 to your computer and use it in GitHub Desktop.

Select an option

Save mikeemoo/2829038 to your computer and use it in GitHub Desktop.
LowpressCmsBundle
<?php
namespace Lowpress\CmsBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle,
Lowpress\CmsBundle\Doctrine\InheritanceListener;
class LowpressCmsBundle extends Bundle
{
public function boot()
{
$em = $this->container->get('doctrine.orm.default_entity_manager');
$em->getEventManager()->addEventSubscriber(new InheritanceListener($em));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment