DoctrineModule provides basic functionality consumed by DoctrineORMModule (if you want to use Doctrine ORM) and DoctrineMongoODMModule (if you want to use MongoDB ODM)
Please check the docs
dir
for more detailed documentation on the features provided by this module.
Installation of DoctrineModule uses composer. For composer documentation, please refer to getcomposer.org.
-
cd my/project/directory
-
create or modify the
composer.json
file within your ZF2 application file with following contents:{ "minimum-stability": "dev", "require": { "doctrine/doctrine-module": "dev-master" } }
-
install composer via
curl -s https://getcomposer.org/installer | php
(on windows, download https://getcomposer.org/installer and execute it with PHP). Then runphp composer.phar install
-
open
my/project/directory/configs/application.config.php
and add the following key to yourmodules
:'DoctrineModule',
##Installation (without composer)
-
clone this repository to
vendor/DoctrineModule
in your ZF2 application -
The module depends on various packages that you have to install and autoload in order to get it to work. Check the
require
section of thecomposer.json
file to see what these requirements are. -
open
my/project/directory/configs/application.config.php
and add the following key to yourmodules
:'DoctrineModule',