Skip to content

Instantly share code, notes, and snippets.

@caefer
Created August 23, 2011 19:11
Show Gist options
  • Select an option

  • Save caefer/1166181 to your computer and use it in GitHub Desktop.

Select an option

Save caefer/1166181 to your computer and use it in GitHub Desktop.
<?php
$dm = $this->container->get('doctrine.odm.mongodb.document_manager');
$dm->getSchemaManager()->ensureIndexes();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment