Setting up the Hybrid Storage MySQL/MongoDB

Prerequisites

If you are here, it means you have already sorted out that you need to enable the Hybrid Storage Mysql/MongoDB. If not, please read the System Requirements section. It also means that you have installed MongoDB alongside with its PHP driver.

Installing and enabling MongoDB support in Akeneo

  • In app/AppKernel.php, uncomment the following line (this will enable DoctrineMongoDBBundle and will load and enable the MongoDB configuration):
1
2
$ gedit app/AppKernel.php
new Doctrine\Bundle\MongoDBBundle\DoctrineMongoDBBundle(),
  • Set MongoDB server configuration at the end of the configuration file
1
2
3
4
5
6
$ gedit app/config/pim_parameters.yml

pim_catalog_product_storage_driver: doctrine/mongodb-odm

mongodb_server: 'mongodb://localhost:27017'
mongodb_database: your_mongo_database
  • Install the required dependency
1
2
$ cd /path/to/installation/pim-community-standard
$ php -d memory_limit=3G ../composer.phar --prefer-dist require doctrine/mongodb-odm-bundle 3.2.0