Skip to content

Instantly share code, notes, and snippets.

@ornicar
Created August 10, 2010 10:23
Show Gist options
  • Save ornicar/517046 to your computer and use it in GitHub Desktop.
Save ornicar/517046 to your computer and use it in GitHub Desktop.
class Controller extends BaseController
{
/**
* Get the Doctrine Document Manager
* @return Doctrine\ODM\MongoDB\DocumentManager
*/
protected function getODM()
{
return $this->container->getService("doctrine.odm.mongodb.document_manager");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment