Skip to content

Instantly share code, notes, and snippets.

@johnkary
Created November 5, 2013 15:38
Show Gist options
  • Save johnkary/7320946 to your computer and use it in GitHub Desktop.
Save johnkary/7320946 to your computer and use it in GitHub Desktop.
Prevent excess memory usage with long-running Symfony2 Commands
$this->em = $this->getContainer()->get('doctrine')->getEntityManager();
$this->em->getConnection()->getConfiguration()->setSQLLogger(null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment