Skip to content

Commit

Permalink
Merge pull request #67 from dennis-fedco/patch-2
Browse files Browse the repository at this point in the history
Added sample Installation Instructions for the module
  • Loading branch information
Danielss89 committed Apr 17, 2014
2 parents 731e780 + 5f9d198 commit 17efcb0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,36 @@ Dependencies
- [ZfcUser](https://github.com/ZF-Commons/ZfcUser)
- [DoctrineModule](https://github.com/doctrine/DoctrineModule)
- [DoctrineORMModule](https://github.com/doctrine/DoctrineORMModule)

Installation
------------
Set up Database Connection Settings for Doctrine ORM:

Namely, go to [Doctrine Connection Settings](https://github.com/doctrine/DoctrineORMModule#connection-settings), and copy/paste/modify the example configuration file content into your `config/autoload/doctrine.orm.local.php`.

Install Zfc Components:

php composer.phar require zf-commons/zfc-user-doctrine-orm

Set up your Modules in `config/application/application.config.php`, something like

'modules' => array(
'DoctrineModule',
'DoctrineORMModule',
'ZfcBase',
'ZfcUser',
'ZfcUserDoctrineORM',
'Application',
),

Now, you can use [ZfcUser SQL schema](https://github.com/ZF-Commons/ZfcUser/tree/master/data) to set up your database tables.

Alternatively, you can use `doctrine-module` to do this work for you:

vendor/bin/doctrine-module orm:schema-tool:update --dump-sql

If SQL looks okay, do:

vendor/bin/doctrine-module orm:schema-tool:update --force

You can now navigate to `/user` and it should work.

0 comments on commit 17efcb0

Please sign in to comment.