-
Add this bundle to your project as a Git submodule:
$ git submodule add [email protected]:Exercise/CountryBundle.git src/Exercise/CountryBundle
-
Add this bundle to your application's kernel:
// application/ApplicationKernel.php public function registerBundles() { return array( // ... new Exercise\CountryBundle\ExerciseCountryBundle(), // ... ); }
-
Populate your database with countries defined in the csv file:
php exercise/console app:data:load --fixtures=src/Exercise/CountryBundle/Resources/data/fixtures/doctrine/mongodb
-
Load all countries:
$this['doctrine.odm.mongodb.document_manager']->getRepository('ExerciseCountryBundle:Country')->findAll();
Distributed under MIT License
Full license Resources/meta/LICENSE