Skip to content

Instantly share code, notes, and snippets.

View jseverson's full-sized avatar

Jay Severson jseverson

View GitHub Profile
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");