Download the PHP package lm-commons/lmc-user-doctrine-orm without Composer
On this page you can find all versions of the php package lm-commons/lmc-user-doctrine-orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lm-commons/lmc-user-doctrine-orm
More information about lm-commons/lmc-user-doctrine-orm
Files in lm-commons/lmc-user-doctrine-orm
Package lmc-user-doctrine-orm
Short Description Doctrine2 ORM storage adapter for LmcUser.
License BSD-3-Clause
Homepage https://github.com/LM-Commons/LmcUserDoctrineORM
Informations about the package lmc-user-doctrine-orm
LmcUserDoctrineORM
Based on ZfcUserDoctrineORM by Kyle Spraggs and the ZF-Commons team
Introduction
LmcUserDoctrineORM is a Doctrine2 ORM storage adapter for LmcUser.
Options
The following options are available:
- enable_default_entities - Boolean value, determines if the default User entity should be enabled. Set it to false in order to extend LmcUser\Entity\User with your own entity. Default is true.
Dependencies
Installation
Set up Database Connection Settings for Doctrine ORM:
Namely, go to Doctrine Connection Settings, and copy/paste/modify the example configuration file content into your config/autoload/doctrine.orm.local.php
.
Install Lmc Components:
php composer.phar require lm-commons/lmc-user-doctrine-orm
Set up your Modules in config/application/application.config.php
, something like
'modules' => array(
'DoctrineModule',
'DoctrineORMModule',
'LmcUser',
'LmcUserDoctrineORM',
'Application',
),
Now, you can use LmcUser SQL schema 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
Note: If you want to use a different table schema or user entity then you have to set enable_default_entities
to false
in the lmcuser config file
If SQL looks okay, do:
vendor/bin/doctrine-module orm:schema-tool:update --force
You can now navigate to /user
and it should work.
All versions of lmc-user-doctrine-orm with dependencies
lm-commons/lmc-user Version ^3.3.3
doctrine/doctrine-orm-module Version ^4.0 || ^5.0 || ^6.0