How to configure ZfcUserDoctrineORM
blazarecki opened this issue · 1 comments
blazarecki commented
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
I make a mistake. I'll write a README to install ZfcUserDoctrineORM within ZfcUser.