Home > Zend-Application-Resource-Doctrine

Zend-Application-Resource-Doctrine

Zend-Application-Resource-Doctrine is a project mainly written in PHP, it's free.

Zend Framwork application resource for loading and configuring Doctrine

Installation

Requires >= Zend Framework 1.11

NOTE: These instructions assume a project created using zf create project ...

  1. Create the following directories relative to the project root folder:

    • application esources
    • doctrine
    • doctrinefixtures
    • doctrinemigrations
    • doctrineschema
    • doctrinesql
    • providers
  2. Move the files to the appropriate locations:

    • application/configs/doctrine.yaml
    • application/resources/Doctrine.php
    • providers/DoctrineProvider.php
  3. Add the following lines to the '[production]' section of 'application.ini':

    pluginPaths[Application_Resource] = APPLICATION_PATH "/resources" config[] = APPLICATION_PATH "/configs/doctrine.yaml"

  4. Do a sanity check and make sure your application still loads in a browser.

Run zf ? doctrine to get a list of zf tool commands. Run zf run doctrine to get a list of Doctrine tasks Run zf run doctrine help to get usage for all Doctrine tasks Run zf run doctrine task-name help to get usage for a specific Doctrine task