ZF-Commons / ZfcUserDoctrineORM

Doctrine2 ORM storage adapter for ZfcUser.
BSD 3-Clause "New" or "Revised" License
89 stars 92 forks source link

How to configure ZfcUserDoctrineORM #38

Closed blazarecki closed 11 years ago

blazarecki commented 11 years ago

Hi,

I can't use ZfcUserDoctrineORM

I have a entity User who extends ZfcUserDoctrineORM\Entity\User

in my application autoload config folder I have a config file zfcuser.global.php who contains 'user_entity_class' => 'Album\Entity\User',

But when i am on /user/register, i have an error : **Notice:** Undefined index: db in /vendor/zendframework/zendframework/library/Zend/Db/Adapter/AdapterServiceFactory.php on line 32

Index db was :

<?php
'db' => array(
    'driver'         => 'Pdo',
    'dsn'            => 'mysql:dbname=photo-gallery;host=localhost',
    'driver_options' => array(
        PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''
    ),
),

How tell my application to use doctrine to access db ?

Thanx

blazarecki commented 11 years ago

I make a mistake. I'll write a README to install ZfcUserDoctrineORM within ZfcUser.