Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Zend Framework 2 Module for Doctrine
branch: master

This branch is 589 commits behind doctrine:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.travis
bin
config
docs
src/DoctrineModule
.gitignore
.travis.yml
Module.php
README.md
UPGRADE.md
autoload_classmap.php
autoload_function.php
autoload_register.php
composer.json

README.md

Doctrine Module for Zend Framework 2

The Doctrine module intends to integrate Doctrine 2 with Zend Framework 2 quickly and easily. This module is a provides common Doctrine and ZF integration. To get the most benefit you must use a provider module such as DoctrineORMModule. The following features are intended to work out of the box:

  • CLI support for Doctrine 2 ORM and Doctrine MongoDB ODM.
  • Validators for EntityExists and NoEntityExists
  • Authentication adapter for Zend\Authenticator
  • Support for using existing PDO connections

Requirements

Zend Framework 2

Doctrine CLI

The Doctrine CLI has been pre-configured for you and works as is without any special configuration required for MongoODM and ORM. It will just use your configuration for those modules.

Access the Doctrine command line through

./vendor/bin/doctrine-module

Installation

Installation of DoctrineModule uses composer. For composer documentation, please refer to getcomposer.org. To achieve the task, it currently uses the OcraComposer module to integrate your application with composer. This may change in future.

Installation steps

  1. cd my/project/directory
  2. create a composer.json file with following contents:

     {
         "require": {
             "doctrine/DoctrineModule": "dev-master"
         }
     }
  3. install composer via curl -s http://getcomposer.org/installer | php (on windows, download http://getcomposer.org/installer and execute it with PHP)
  4. run php composer.phar install
  5. open my/project/directory/configs/application.config.php and add following keys to your modules (in this order)

     'OcraComposer',
     'DoctrineModule',

Upgrading

See the UPGRADE.md file.

Something went wrong with that request. Please try again.